From: Lucas Di Pentima Date: Thu, 9 Jun 2022 18:58:55 +0000 (-0300) Subject: 19007: Expands tests. X-Git-Tag: 2.5.0~51^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/5550460d7ca90ad69b325ec58897cb0d55210bca 19007: Expands tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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 - +