Skip to content

Commit

Permalink
test(e2e): resolve flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent a9ff545 commit de7cc59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/cypress/integration/profiles/mfa/webauthn.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ context('2FA WebAuthn', () => {
expect(loc.href).to.include('/login')
})

cy.get('button[name="webauthn_login_trigger"]').click()
cy.get('*[name="webauthn_login_trigger"]').should('have.length', 1)
cy.clickWebAuthButton('login')
cy.location().should((loc) => {
expect(loc.href).to.not.include('/login')
})
Expand Down

0 comments on commit de7cc59

Please sign in to comment.