Skip to content

Commit

Permalink
Fix login.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed Sep 20, 2023
1 parent a799025 commit 0c78e92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ describe('login', () => {
it('can log in and log out as expected', () => {
cy.logInAsStateUser()

cy.url().should('eq', Cypress.config().baseUrl + '/')
cy.url().should('eq', Cypress.config().baseUrl + '/submissions/dashboard')
cy.findByRole('button', { name: /Sign out/i }).safeClick()

cy.location('pathname').should('eq', '/submissions/dashboard')
cy.location('pathname').should('eq', '/')
cy.findByRole('link', { name: /Sign In/i }).should('exist')
})

Expand Down

0 comments on commit 0c78e92

Please sign in to comment.