Skip to content

Commit

Permalink
chore(tests): workflow name should be unique in tests (#3280)
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo <[email protected]>
  • Loading branch information
olevski and lorenzo-cavazzi authored Oct 9, 2023
1 parent b08896f commit c959095
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress-tests/cypress/e2e/useSession.cy.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
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");

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
Expand Down

0 comments on commit c959095

Please sign in to comment.