From c959095fabee5de10bf5df91af74a295a84c4213 Mon Sep 17 00:00:00 2001 From: Tasko Olevski Date: Mon, 9 Oct 2023 11:14:46 +0200 Subject: [PATCH] chore(tests): workflow name should be unique in tests (#3280) Co-authored-by: Lorenzo --- cypress-tests/cypress/e2e/useSession.cy.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress-tests/cypress/e2e/useSession.cy.ts b/cypress-tests/cypress/e2e/useSession.cy.ts index b1efaca352..0c474fc3ae 100644 --- a/cypress-tests/cypress/e2e/useSession.cy.ts +++ b/cypress-tests/cypress/e2e/useSession.cy.ts @@ -1,6 +1,7 @@ import { TIMEOUTS } from "../../config"; import { generatorProjectName } from "../support/commands/projects"; import { validateLogin } from "../support/commands/general"; +import { v4 as uuidv4 } from "uuid"; const username = Cypress.env("TEST_USERNAME"); @@ -8,9 +9,10 @@ const projectTestConfig = { shouldCreateProject: true, projectName: generatorProjectName("useSession"), }; +const workflowNameSalt = uuidv4().substring(0, 4); const workflow = { - name: "dummyworkflow", - output: "o.txt", // ? Keep the name short or it won't show up entirely in the file browser + name: `dummyworkflow-${workflowNameSalt}`, + output: `o${workflowNameSalt}.txt`, // ? Keep the name short or it won't show up entirely in the file browser }; // ? Modify the config -- useful for debugging