mirror of
https://github.com/nolanlawson/pinafore
synced 2025-02-09 07:58:43 +01:00
23 lines
612 B
JavaScript
23 lines
612 B
JavaScript
describe('Basic test', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/')
|
|
})
|
|
|
|
it('has the correct <h1>', () => {
|
|
cy.contains('h1', 'Pinafore')
|
|
})
|
|
|
|
it('navigates to /settings/instances/add', () => {
|
|
cy.contains('log in to an instance').click()
|
|
cy.url().should('contain', '/settings/instances/add')
|
|
})
|
|
|
|
it('navigates to settings/instances', () => {
|
|
cy.get('nav a').contains('Settings').click()
|
|
cy.url().should('contain', '/settings')
|
|
cy.get('a').contains('Instances').click()
|
|
cy.url().should('contain', '/settings/instances')
|
|
cy.contains("You're not logged in to any instances")
|
|
})
|
|
|
|
}) |