Skip to content

Commit

Permalink
test: properly refresh mobile session
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent f02804c commit c31915d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ context('Mobile Profile', () => {
expect(actualCodes.join(', ')).to.eq(newCodes.join(', '))
})

cy.visit(MOBILE_URL + '/Login?aal=aal2')
cy.visit(MOBILE_URL + '/Login?aal=aal2&refresh=true')

// First use a wrong code
cy.get('*[data-testid="field/lookup_secret"]').then(($e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ context('Mobile Profile', () => {
cy.get('*[data-testid="field/lookup_secret_confirm/true"]').click()

// Lets sign in with TOTP
cy.visit(MOBILE_URL + '/Login?aal=aal2')
cy.visit(MOBILE_URL + '/Login?aal=aal2&refresh=true')
cy.get('*[data-testid="field/totp_code"]').then(($e) => {
cy.wrap($e).type(authenticator.generate(totpSecret))
})
Expand Down

0 comments on commit c31915d

Please sign in to comment.