From fc02bef10c31adcad5ef912979d43a56dc9741ad Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 27 Mar 2023 16:39:50 -0400 Subject: [PATCH] 19482: Fix more flaky tests Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- cypress/integration/collection.spec.js | 2 +- cypress/integration/project.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) => { -- 2.30.2