From: Stephen Smith Date: Wed, 22 Mar 2023 14:24:00 +0000 (-0400) Subject: 20251: Try to improve flaky clipboard test X-Git-Tag: 2.6.0~7^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/564602b5adef0b62edd07c2daa1e09a6f6731b92 20251: Try to improve flaky clipboard test Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js index 6a3043d6..cdb49c86 100644 --- a/cypress/integration/project.spec.js +++ b/cypress/integration/project.spec.js @@ -546,7 +546,7 @@ describe('Project tests', function() { }); cy.get('[data-cy=side-panel-tree]').contains('Projects').click(); - cy.get('[data-cy=project-panel]').contains(projectName).rightclick(); + cy.get('[data-cy=project-panel]').contains(projectName).should('be.visible').rightclick(); cy.get('[data-cy=context-menu]').contains('Copy to clipboard').click(); cy.window().then((win) => ( win.navigator.clipboard.readText().then((text) => {