Skip to content

Commit

Permalink
add pending E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Feb 15, 2024
1 parent 57793b6 commit b013bf3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/e2e/cypress/integration/profiles/passwordless/flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,26 @@ context("Passwordless registration", () => {
)
})

// I have no idea why this does not work in an E2E test. It works just fine manually.
xit("should use webauthn credential as passkey", () => {
const email = gen.email()

signup(registration, app, email)
cy.logout()
cy.visit(login)

cy.get('[name="passkey_login_trigger"]').click()
cy.wait(1000)

cy.getSession({
expectAal: "aal1",
expectMethods: ["passkey"],
}).then((session) => {
expect(session.identity.traits.email).to.equal(email)
expect(session.identity.traits.website).to.equal("https://www.ory.sh")
})
})

it("should be able to login with registered account", () => {
const email = gen.email()

Expand Down

0 comments on commit b013bf3

Please sign in to comment.