Skip to content

Commit 15d1ee6

Browse files
jonas-jonasory-bot
authored andcommitted
revert: tests: improve randomness in e2e tests
GitOrigin-RevId: 377b6b2dca8eec59f244d3b0f94883a6b443b772
1 parent f5ad5a5 commit 15d1ee6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cypress/integration/pages.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
const randomString = () => (Math.random() + 1).toString(36).substring(7)
2+
const randomPassword = () => randomString() + randomString()
3+
const randomEmail = () => randomString() + "@" + randomString() + ".com"
4+
15
context("Ory Kratos pages", () => {
6+
const email = randomEmail()
7+
const password = randomPassword()
8+
29
beforeEach(() => {
310
cy.clearCookies({ domain: null })
411
})

0 commit comments

Comments
 (0)