From 5550460d7ca90ad69b325ec58897cb0d55210bca Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Thu, 9 Jun 2022 15:58:55 -0300 Subject: [PATCH] 19007: Expands tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/integration/collection.spec.js | 7 +++++++ .../collection-panel-files/collection-panel-files.tsx | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index 0b06e53e..1329191d 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -278,6 +278,13 @@ describe('Collection panel tests', function () { .and(`${isWritable ? '' : 'not.'}contain`, 'Rename') .and(`${isWritable ? '' : 'not.'}contain`, 'Remove'); cy.get('body').click(); // Collapse the menu + // File/dir item 'more options' button + cy.get('[data-cy=file-item-options-btn') + .first() + .click() + cy.get('[data-cy=context-menu]') + .should(`${isWritable ? '' : 'not.'}contain`, 'Remove'); + cy.get('body').click(); // Collapse the menu // Hamburger 'more options' menu button cy.get('[data-cy=collection-files-panel-options-btn]') .click() diff --git a/src/components/collection-panel-files/collection-panel-files.tsx b/src/components/collection-panel-files/collection-panel-files.tsx index f565fba9..06b3c507 100644 --- a/src/components/collection-panel-files/collection-panel-files.tsx +++ b/src/components/collection-panel-files/collection-panel-files.tsx @@ -580,8 +580,11 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState - + -- 2.30.2