Skip to content

Commit

Permalink
test: longer wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 17, 2021
1 parent b2e43f8 commit 4bec9ef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ context('Recovery', () => {
cy.get('input[name="email"]').type(identity.email)
cy.get('button[value="link"]').click()

cy.wait(1500)
cy.wait(4000)

cy.recoverEmailButExpired({ expect: { email: identity.email } })

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('Registration', () => {
})

it('is unable to verify the email address if the code is no longer valid and resend the code', () => {
cy.wait(1500)
cy.wait(4000)
cy.verifyEmailButExpired({ expect: { email: identity.email } })

cy.get('input[name="email"]').should('be.empty')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ context('Settings', () => {
const email = `not-${identity.email}`
cy.get('input[name="traits.email"]').clear().type(email)
cy.get('button[value="profile"]').click()
cy.wait(1500)
cy.wait(4000)

cy.verifyEmailButExpired({ expect: { email } })
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ context('Verify', () => {
'An email containing a verification'
)

cy.wait(1500)
cy.wait(4000)
cy.verifyEmailButExpired({ expect: { email: identity.email } })
})

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Cypress.Commands.add('longVerificationLifespan', ({} = {}) => {
})
Cypress.Commands.add('shortVerificationLifespan', ({} = {}) => {
updateConfigFile((config) => {
config.selfservice.flows.verification.lifespan = '1500ms'
config.selfservice.flows.verification.lifespan = '4s'
return config
})
})
Expand All @@ -95,7 +95,7 @@ Cypress.Commands.add('longRecoveryLifespan', ({} = {}) => {

Cypress.Commands.add('shortRecoveryLifespan', ({} = {}) => {
updateConfigFile((config) => {
config.selfservice.flows.recovery.lifespan = '1500ms'
config.selfservice.flows.recovery.lifespan = '4s'
return config
})
})
Expand Down

0 comments on commit 4bec9ef

Please sign in to comment.