From 8d705cfcfc1d0f3812df2f3eaeb479b08d6e0e2d Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Fri, 27 Sep 2024 11:27:57 -0400 Subject: [PATCH] 21988: added specificity to workfloe test Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- services/workbench2/cypress/e2e/workflow.cy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/workbench2/cypress/e2e/workflow.cy.js b/services/workbench2/cypress/e2e/workflow.cy.js index dbc781caa3..de449c0f08 100644 --- a/services/workbench2/cypress/e2e/workflow.cy.js +++ b/services/workbench2/cypress/e2e/workflow.cy.js @@ -248,7 +248,8 @@ describe('Registered workflow panel tests', function() { }); it('can delete multiple workflows', function() { - const wfNames = ["Test wf1", "Test wf2", "Test wf3"]; + const { floor, random } = Math; + const wfNames = [`Test wf1 ${floor(random() * 999999)}`, `Test wf2 ${floor(random() * 999999)}`, `Test wf3 ${floor(random() * 999999)}`]; wfNames.forEach((wfName) => { cy.createResource(activeUser.token, "workflows", {workflow: {name: wfName}}) @@ -257,7 +258,7 @@ describe('Registered workflow panel tests', function() { cy.loginAs(activeUser); wfNames.forEach((wfName) => { - cy.get('tr').contains('td', wfName).should('exist').parent('tr').find('input[type="checkbox"]').click(); + cy.get('tr').contains('td', wfName).should('exist', { timeout: 10000 }).parent('tr').find('input[type="checkbox"]').click(); }); cy.waitForDom().get('[data-cy=multiselect-button]', {timeout: 10000}).should('be.visible') -- 2.30.2