From 5d0a9458a1910b76c432c83ef4dd9a3337fdff38 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 2 May 2023 09:01:34 -0400 Subject: [PATCH] 20031: Verify files in all copy/move batch operation tests Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- cypress/integration/collection.spec.js | 6 +++--- src/store/collections/collection-partial-copy-actions.ts | 2 +- src/store/collections/collection-partial-move-actions.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index a49c18db..c53ff392 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -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'); diff --git a/src/store/collections/collection-partial-copy-actions.ts b/src/store/collections/collection-partial-copy-actions.ts index 4005098f..f57a0321 100644 --- a/src/store/collections/collection-partial-copy-actions.ts +++ b/src/store/collections/collection-partial-copy-actions.ts @@ -79,7 +79,7 @@ export const copyCollectionPartialToNewCollection = ({ name, description, projec false ); dispatch(updateResources([updatedCollection])); - dispatch(navigateTo(updatedCollection.uuid)) + dispatch(navigateTo(updatedCollection.uuid)); dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_COPY_FORM_NAME })); dispatch(snackbarActions.OPEN_SNACKBAR({ diff --git a/src/store/collections/collection-partial-move-actions.ts b/src/store/collections/collection-partial-move-actions.ts index afd35461..e4fc8186 100644 --- a/src/store/collections/collection-partial-move-actions.ts +++ b/src/store/collections/collection-partial-move-actions.ts @@ -80,7 +80,7 @@ export const moveCollectionPartialToNewCollection = ({ name, description, projec false ); dispatch(updateResources([updatedCollection])); - dispatch(navigateTo(updatedCollection.uuid)) + dispatch(navigateTo(updatedCollection.uuid)); dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_MOVE_TO_NEW_COLLECTION })); dispatch(snackbarActions.OPEN_SNACKBAR({ -- 2.30.2