diff --git a/modules/ui/cypress/e2e/project-creation-and-edition.cy.ts b/modules/ui/cypress/e2e/project-creation-and-edition.cy.ts index 6d86cb9d..34c25cd8 100644 --- a/modules/ui/cypress/e2e/project-creation-and-edition.cy.ts +++ b/modules/ui/cypress/e2e/project-creation-and-edition.cy.ts @@ -1,6 +1,4 @@ -function generateId(): string { - return Math.random().toString(16).slice(2); -} +import {generateId} from '../support/utils'; function buildProjectName(id): string { return 'project ' + id; diff --git a/modules/ui/cypress/support/utils.ts b/modules/ui/cypress/support/utils.ts new file mode 100644 index 00000000..1214e729 --- /dev/null +++ b/modules/ui/cypress/support/utils.ts @@ -0,0 +1,3 @@ +export function generateId(): string { + return Math.random().toString(16).slice(2); +} \ No newline at end of file