20031: Cypress wait for re-render 20031-collection-files-batch-operations
authorStephen Smith <stephen@curii.com>
Wed, 31 May 2023 14:36:12 +0000 (10:36 -0400)
committerStephen Smith <stephen@curii.com>
Wed, 31 May 2023 14:36:12 +0000 (10:36 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

cypress/integration/collection.spec.js

index 36478f211210ca3a738c79971f9c3d9ae3ecfa82..d5b1b9ebcf7169dec5649e89d1f82de52b3a250c 100644 (file)
@@ -1014,7 +1014,8 @@ describe('Collection panel tests', function () {
                         .and('contain', 'bar');
 
                 // Verify separate collection menu items not present when single file selected
-                cy.get('[data-cy=collection-files-panel]').within(() => {
+                // Wait for dom for collection to re-render
+                cy.waitForDom().get('[data-cy=collection-files-panel]').within(() => {
                     cy.get('input[type=checkbox]').first().click();
                 });
                 cy.get('[data-cy=collection-files-panel-options-btn]').click();