Skip to content

Commit 4d323d0

Browse files
committed
test(e2e): improve webauthn test reliability
1 parent 907dbe3 commit 4d323d0

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

test/e2e/cypress/integration/profiles/mfa/mix.spec.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { routes as react } from '../../../helpers/react'
44
import { routes as express } from '../../../helpers/express'
55

66
context('2FA with various methods', () => {
7-
before(() => {
8-
cy.task('resetCRI', {})
9-
})
10-
after(() => {
7+
beforeEach(() => {
118
cy.task('resetCRI', {})
129
})
1310
;[

test/e2e/cypress/integration/profiles/mfa/webauthn.spec.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import { routes as react } from '../../../helpers/react'
33
import { routes as express } from '../../../helpers/express'
44

55
context('2FA WebAuthn', () => {
6-
before(() => {
7-
cy.task('resetCRI', {})
8-
})
9-
after(() => {
6+
beforeEach(() => {
107
cy.task('resetCRI', {})
118
})
129
;[

test/e2e/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ory/kratos-e2e-suite",
33
"version": "0.0.1",
44
"scripts": {
5-
"test": "cypress run --browser chrome",
5+
"test": "cypress run --browser chrome --e2e",
66
"test:watch": "cypress open --browser chrome",
77
"openapi-generator-cli": "openapi-generator-cli",
88
"wait-on": "wait-on",

0 commit comments

Comments
 (0)