From: Peter Amstutz Date: Mon, 27 Mar 2023 20:39:50 +0000 (-0400) Subject: 19482: Fix more flaky tests X-Git-Tag: 2.6.0~6^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/fc02bef10c31adcad5ef912979d43a56dc9741ad 19482: Fix more flaky tests Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index af4aa2b0..1a66600c 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -1041,7 +1041,7 @@ describe('Collection panel tests', function () { }).as('testCollection1'); }); - it.only('uploads a file and checks the collection UI to be fresh', () => { + it('uploads a file and checks the collection UI to be fresh', () => { cy.getAll('@testCollection1') .then(function([testCollection1]) { cy.loginAs(activeUser); diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js index 6a3043d6..f767782a 100644 --- a/cypress/integration/project.spec.js +++ b/cypress/integration/project.spec.js @@ -544,9 +544,9 @@ describe('Project tests', function() { }); cy.get('[data-cy=form-submit-btn]').click(); }); - + cy.get('[data-cy=form-dialog]').should("not.exist"); cy.get('[data-cy=side-panel-tree]').contains('Projects').click(); - cy.get('[data-cy=project-panel]').contains(projectName).rightclick(); + cy.waitForDom().get('[data-cy=project-panel]').contains(projectName).rightclick(); cy.get('[data-cy=context-menu]').contains('Copy to clipboard').click(); cy.window().then((win) => ( win.navigator.clipboard.readText().then((text) => {