16073: Imporve process io panel test reliability
authorStephen Smith <stephen@curii.com>
Thu, 15 Sep 2022 19:13:13 +0000 (15:13 -0400)
committerStephen Smith <stephen@curii.com>
Thu, 15 Sep 2022 19:13:13 +0000 (15:13 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

cypress/integration/process.spec.js

index 7884b988758f902b9a580262cb262b3f67edd1d5..b2942e4d33886865a6aac8e1d460f9070fff7c98 100644 (file)
@@ -896,7 +896,7 @@ describe('Process tests', function() {
             cy.get('[data-cy=process-io-card] h6').contains('Outputs')
                 .parents('[data-cy=process-io-card]').within((ctx) => {
                     cy.get(ctx).scrollIntoView();
-                    cy.get('[data-cy="io-preview-image-toggle"]').click();
+                    cy.waitForDom().get('[data-cy="io-preview-image-toggle"]').click();
                     const outPdh = testOutputCollection.portable_data_hash;
 
                     verifyIOParameter('output_file', null, "Label Description", 'cat.png', `keep:${outPdh}`);