20031: Try to fix tests
[arvados-workbench2.git] / cypress / integration / process.spec.js
index 851e33950141b473bcde7649e1333211cad8207d..bdb4fae61ae0f58062fab989752a348dac0adc7f 100644 (file)
@@ -1040,7 +1040,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.get('[data-cy="io-preview-image-toggle"]').click({waitForAnimations: false});
                     const outPdh = testOutputCollection.portable_data_hash;
 
                     verifyIOParameter('output_file', null, "Label Description", 'cat.png', `${outPdh}`);
@@ -1252,8 +1252,8 @@ describe('Process tests', function() {
             cy.goToPath(`/processes/${containerRequest.uuid}`);
             cy.waitForDom();
             cy.get('[data-cy=process-details]').should('contain', crUncommitted);
-            cy.get('[data-cy=process-details]').find('button').contains('Run');
-            cy.get('[data-cy=process-cancel]').should('not.exist');
+            cy.get('[data-cy=process-run-button]').should('exist');
+            cy.get('[data-cy=process-cancel-button]').should('not.exist');
         });
 
         // Queued container
@@ -1286,7 +1286,7 @@ describe('Process tests', function() {
             cy.goToPath(`/processes/${containerRequest.uuid}`);
             cy.waitForDom();
             cy.get('[data-cy=process-details]').should('contain', crQueued);
-            cy.get('[data-cy=process-cancel]').contains('Cancel');
+            cy.get('[data-cy=process-cancel-button]').contains('Cancel');
         });
 
         // Locked container
@@ -1319,7 +1319,7 @@ describe('Process tests', function() {
             cy.goToPath(`/processes/${containerRequest.uuid}`);
             cy.waitForDom();
             cy.get('[data-cy=process-details]').should('contain', crLocked);
-            cy.get('[data-cy=process-cancel]').contains('Cancel');
+            cy.get('[data-cy=process-cancel-button]').contains('Cancel');
         });
 
         // On Hold container
@@ -1352,8 +1352,8 @@ describe('Process tests', function() {
             cy.goToPath(`/processes/${containerRequest.uuid}`);
             cy.waitForDom();
             cy.get('[data-cy=process-details]').should('contain', crOnHold);
-            cy.get('[data-cy=process-details]').find('button').contains('Run');
-            cy.get('[data-cy=process-cancel]').should('not.exist');
+            cy.get('[data-cy=process-run-button]').should('exist');
+            cy.get('[data-cy=process-cancel-button]').should('not.exist');
         });
     });