[arvados-workbench2] updated: 2.6.0-19-g7f8d3a8c

git repository hosting git at public.arvados.org
Wed May 24 01:03:30 UTC 2023


Summary of changes:
 cypress/integration/collection.spec.js | 36 +++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

       via  7f8d3a8c260418c02c85e74d9da27c45802be837 (commit)
      from  70593b8d415d8858123a3df4eb148ce686611c26 (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 7f8d3a8c260418c02c85e74d9da27c45802be837
Author: Stephen Smith <stephen at curii.com>
Date:   Tue May 23 21:03:24 2023 -0400

    20031: Fix tests
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js
index 4d3f95e2..a4cb75f4 100644
--- a/cypress/integration/collection.spec.js
+++ b/cypress/integration/collection.spec.js
@@ -989,23 +989,35 @@ describe('Collection panel tests', function () {
                 cy.loginAs(activeUser)
                 cy.goToPath(`/collections/${sourceCollection.uuid}`);
 
+                // Select both files
                 cy.get('[data-cy=collection-files-panel]').within(() => {
-                    cy.get('input[type=checkbox]').click({multiple: true});
+                    cy.get('input[type=checkbox]').first().click();
+                    cy.get('input[type=checkbox]').last().click();
                 });
 
+                // Copy to separate collections
                 cy.get('[data-cy=collection-files-panel-options-btn]').click();
                 cy.get('[data-cy=context-menu]').contains('Copy selected into separate collections').click();
-
                 cy.get('[data-cy=form-dialog]').contains('Projects').click();
                 cy.get('[data-cy=form-submit-btn]').click();
 
+                // Verify created collections
                 cy.waitForDom().get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
-
-                // cy.goToPath(`/collections/${destinationCollection.uuid}`);
-
+                cy.get('main').contains(`File copied from collection ${sourceCollection.name}/foo`).click();
+                cy.get('[data-cy=collection-files-panel]')
+                        .and('contain', 'foo');
+                cy.get('.layout-pane-primary').contains('Projects').click();
                 cy.get('main').contains(`File copied from collection ${sourceCollection.name}/bar`).click();
                 cy.get('[data-cy=collection-files-panel]')
                         .and('contain', 'bar');
+
+                // Verify separate collection menu items not present when single file selected
+                cy.get('[data-cy=collection-files-panel]').within(() => {
+                    cy.get('input[type=checkbox]').first().click();
+                });
+                cy.get('[data-cy=collection-files-panel-options-btn]').click();
+                cy.get('[data-cy=context-menu]').should('not.contain', 'Copy selected into separate collections');
+                cy.get('[data-cy=context-menu]').should('not.contain', 'Move selected into separate collections');
             });
     });
 
@@ -1093,19 +1105,25 @@ describe('Collection panel tests', function () {
                 cy.loginAs(activeUser)
                 cy.goToPath(`/collections/${sourceCollection.uuid}`);
 
+                // Select both files
                 cy.get('[data-cy=collection-files-panel]').within(() => {
-                    cy.get('input[type=checkbox]').click({multiple: true});
+                    cy.get('input[type=checkbox]').first().click();
+                    cy.get('input[type=checkbox]').last().click();
                 });
 
+                // Copy to separate collections
                 cy.get('[data-cy=collection-files-panel-options-btn]').click();
                 cy.get('[data-cy=context-menu]').contains('Move selected into separate collections').click();
-
                 cy.get('[data-cy=form-dialog]').contains('Projects').click();
                 cy.get('[data-cy=form-submit-btn]').click();
 
+                // Verify created collections
                 cy.waitForDom().get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
-
-                cy.get('main').contains(`File moved from collection ${sourceCollection.name}/bar`).click();
+                cy.get('main').contains(`File moved from collection ${sourceCollection.name}/foo`).click();
+                cy.get('[data-cy=collection-files-panel]')
+                        .and('contain', 'foo');
+                cy.get('.layout-pane-primary').contains('Projects').click();
+                cy.get('main').contains(`File copied from collection ${sourceCollection.name}/bar`).click();
                 cy.get('[data-cy=collection-files-panel]')
                         .and('contain', 'bar');
             });

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list