19049: Add waitfordom to flaky collection test
[arvados-workbench2.git] / cypress / integration / collection.spec.js
index d668b467448ced6a15d898ca39fa12fea8252cb4..b62a34414fb58b57c4e6ac0d418f14dbce78553f 100644 (file)
@@ -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) {