Skip to content

Commit

Permalink
test(e2e) improve reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 22, 2021
1 parent 63c0e86 commit 763dd00
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,16 @@ context('Account Verification Error', () => {
cy.longLinkLifespan()

identity = gen.identity()
cy.register(identity)
cy.registerApi(identity)
cy.deleteMail({ atLeast: 1 }) // clean up registration email

cy.clearAllCookies()
cy.login(identity)
cy.visit(verification)
})

it('is unable to verify the email address if the code is expired', () => {
cy.shortLinkLifespan()

cy.visit(APP_URL + '/verification')
cy.visit(verification)
cy.get('input[name="email"]').type(identity.email)
cy.get('button[value="link"]').click()

Expand All @@ -79,7 +77,6 @@ context('Account Verification Error', () => {
expect(verifyHrefPattern.test(link.href)).to.be.true

cy.visit(link.href + '-not') // add random stuff to the confirm challenge
cy.log(link.href)
cy.getSession().then(
assertVerifiableAddress({
isVerified: false,
Expand Down

0 comments on commit 763dd00

Please sign in to comment.