[arvados-workbench2] updated: 2.5.0-60-g9e72f76e

git repository hosting git at public.arvados.org
Thu Feb 16 21:38:52 UTC 2023


Summary of changes:
 cypress/integration/process.spec.js              | 14 +++++++-------
 src/views/process-panel/process-details-card.tsx |  3 ++-
 2 files changed, 9 insertions(+), 8 deletions(-)

       via  9e72f76ee0bbc453c0367fc74da36d1469016a3e (commit)
      from  1644bcb57fa716c5d70d97b7916f47acc179cad0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9e72f76ee0bbc453c0367fc74da36d1469016a3e
Author: Stephen Smith <stephen at curii.com>
Date:   Thu Feb 16 16:38:31 2023 -0500

    20000: Cypress use specific selectors
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/cypress/integration/process.spec.js b/cypress/integration/process.spec.js
index bd82700e..19544c9c 100644
--- a/cypress/integration/process.spec.js
+++ b/cypress/integration/process.spec.js
@@ -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
@@ -1350,10 +1350,10 @@ describe('Process tests', function() {
 
             // Navigate to process and verify cancel button
             cy.goToPath(`/processes/${containerRequest.uuid}`);
-            cy.get('[data-cy=process-details]').should('contain', crOnHold);
             cy.waitForDom();
-            cy.get('[data-cy=process-details]').find('button').contains('Run');
-            cy.get('[data-cy=process-cancel]').should('not.exist');
+            cy.get('[data-cy=process-details]').should('contain', crOnHold);
+            cy.get('[data-cy=process-run-button]').should('exist');
+            cy.get('[data-cy=process-cancel-button]').should('not.exist');
         });
     });
 
diff --git a/src/views/process-panel/process-details-card.tsx b/src/views/process-panel/process-details-card.tsx
index 501d8644..b8990b2f 100644
--- a/src/views/process-panel/process-details-card.tsx
+++ b/src/views/process-panel/process-details-card.tsx
@@ -120,6 +120,7 @@ export const ProcessDetailsCard = withStyles(styles)(
                     <div>
                         {runAction !== undefined &&
                             <Button
+                                data-cy="process-run-button"
                                 variant="contained"
                                 size="small"
                                 color="primary"
@@ -135,7 +136,7 @@ export const ProcessDetailsCard = withStyles(styles)(
                             process.containerRequest.priority !== null &&
                             process.containerRequest.priority > 0 &&
                             <Button
-                                data-cy="process-cancel"
+                                data-cy="process-cancel-button"
                                 variant="outlined"
                                 size="small"
                                 color="primary"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list