✨ Add Sign Up e2e tests (#1268)
This commit is contained in:
11
frontend/tests/utils/random.ts
Normal file
11
frontend/tests/utils/random.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const randomEmail = () =>
|
||||
`test_${Math.random().toString(36).substring(7)}@example.com`
|
||||
|
||||
export const randomTeamName = () =>
|
||||
`Team ${Math.random().toString(36).substring(7)}`
|
||||
|
||||
export const slugify = (text: string) =>
|
||||
text
|
||||
.toLowerCase()
|
||||
.replace(/\s+/g, "-")
|
||||
.replace(/[^\w-]+/g, "")
|
Reference in New Issue
Block a user