20031: Verify files in all copy/move batch operation tests
authorStephen Smith <stephen@curii.com>
Tue, 2 May 2023 13:01:34 +0000 (09:01 -0400)
committerStephen Smith <stephen@curii.com>
Tue, 2 May 2023 13:01:34 +0000 (09:01 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

cypress/integration/collection.spec.js
src/store/collections/collection-partial-copy-actions.ts
src/store/collections/collection-partial-move-actions.ts

index a49c18db3181a90b5845acbe7e02461a991a0d81..c53ff3929d442fee7a64e5092dcf337310916e2f 100644 (file)
@@ -930,7 +930,9 @@ describe('Collection panel tests', function () {
 
                 cy.waitForDom().get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
 
-                cy.get('main').contains(`Files extracted from: ${this.collection.name}`).should('exist');
+                cy.get('main').contains(`Files extracted from: ${this.collection.name}`).click();
+                cy.get('[data-cy=collection-files-panel]')
+                        .and('contain', 'bar');
             });
     });
 
@@ -1103,8 +1105,6 @@ describe('Collection panel tests', function () {
 
                 cy.waitForDom().get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
 
-                // cy.goToPath(`/collections/${destinationCollection.uuid}`);
-
                 cy.get('main').contains(`File moved from collection ${sourceCollection.name}/bar`).click();
                 cy.get('[data-cy=collection-files-panel]')
                         .and('contain', 'bar');
index 4005098f3b67f969eac87393fa5f5b8803898cd8..f57a0321ce58a2ae3171386b9096be0aff822849 100644 (file)
@@ -79,7 +79,7 @@ export const copyCollectionPartialToNewCollection = ({ name, description, projec
                     false
                 );
                 dispatch(updateResources([updatedCollection]));
-                dispatch<any>(navigateTo(updatedCollection.uuid))
+                dispatch<any>(navigateTo(updatedCollection.uuid));
 
                 dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_COPY_FORM_NAME }));
                 dispatch(snackbarActions.OPEN_SNACKBAR({
index afd35461a6cbdc3757d32e006e97c0aa992c7b1c..e4fc8186a7fe8b76ede8fbe0b841ae512e6c8bba 100644 (file)
@@ -80,7 +80,7 @@ export const moveCollectionPartialToNewCollection = ({ name, description, projec
                     false
                 );
                 dispatch(updateResources([updatedCollection]));
-                dispatch<any>(navigateTo(updatedCollection.uuid))
+                dispatch<any>(navigateTo(updatedCollection.uuid));
 
                 dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_MOVE_TO_NEW_COLLECTION }));
                 dispatch(snackbarActions.OPEN_SNACKBAR({