Skip to content

Commit

Permalink
test(cypress): add logout test (#3393)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 committed May 31, 2022
1 parent f8f20f4 commit ae9c04b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cypress/integration/localstorage-validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,17 @@ describe('Verify passphrase does not get stored in localstorage', () => {
cy.validatePassphraseLocalStorage()
})
})

it('Logout user on /unlock page', () => {
cy.visit('/')
cy.get('[data-cy=add-input]').type('22,A9ZJ[F\t5g', { log: false })
cy.get('[data-cy=submit-input]').click()
cy.get('[data-cy=create-account-button]').click()
cy.contains('I Saved It').click()
cy.visit('/')
cy.contains('Not you? Create or import an account').click()
cy.contains('Not you? Create or import an account', {
timeout: 30000,
}).should('not.exist')
})
})

0 comments on commit ae9c04b

Please sign in to comment.