From: Stephen Smith Date: Thu, 12 May 2022 22:55:43 +0000 (-0400) Subject: 19049: Add waitfordom to flaky collection test X-Git-Tag: 2.4.1~1^2~4^2~2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/a89c34e7cba3d8381302ff142c37e1a8b39ca80e?hp=9ec7a1bf9888c2e517c7f9e0bf595c70795d5da8 19049: Add waitfordom to flaky collection test Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index d668b467..b62a3441 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -251,7 +251,7 @@ describe('Collection panel tests', function () { .should('contain', 'someKey: someValue') .and('not.contain', 'anotherKey: anotherValue'); // Check that the file listing show both read & write operations - cy.get('[data-cy=collection-files-panel]').within(() => { + cy.waitForDom().get('[data-cy=collection-files-panel]').within(() => { cy.get('[data-cy=collection-files-right-panel]', { timeout: 5000 }) .should('contain', fileName); if (isWritable) {