From 3ebe70ccec47fe17491415736701e6e1ce1956c3 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 23 Jun 2022 00:36:47 -0400 Subject: [PATCH] 19093: Improve cypress test reliability Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- cypress/integration/collection.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index fd8e65b2..28454a90 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -374,7 +374,7 @@ describe('Collection panel tests', function () { cy.goToPath(`/collections/${this.testCollection.uuid}`); ['subdir', 'G%C3%BCnter\'s%20file', 'table%&?*2'].forEach((subdir) => { - cy.get('[data-cy=collection-files-panel]') + cy.waitForDom().get('[data-cy=collection-files-panel]') .contains('bar').rightclick(); cy.get('[data-cy=context-menu]') .contains('Rename') @@ -642,7 +642,7 @@ describe('Collection panel tests', function () { .contains(projName).and('contain', testProject.uuid); // Double check that the collection is in the project cy.goToPath(`/projects/${testProject.uuid}`); - cy.get('[data-cy=project-panel]').should('contain', collName); + cy.waitForDom().get('[data-cy=project-panel]').should('contain', collName); }); }); -- 2.30.2