From: Lucas Di Pentima Date: Wed, 25 Nov 2020 16:25:17 +0000 (-0300) Subject: 17098: Updates integration test for the 'recover version' operation. X-Git-Tag: 2.1.2~24^2~6 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/673bf2ac4b09da2d868fdb99123d72f23d2f88cf?ds=sidebyside 17098: Updates integration test for the 'recover version' operation. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/cypress/integration/collection-panel.spec.js b/cypress/integration/collection-panel.spec.js index 0a127db7..59b80e67 100644 --- a/cypress/integration/collection-panel.spec.js +++ b/cypress/integration/collection-panel.spec.js @@ -393,6 +393,19 @@ describe('Collection panel tests', function() { .should('not.contain', 'foo').and('contain', 'bar'); cy.get('[data-cy=collection-version-browser-select-3]') .should('contain', '3').and('contain', '3 B'); + + // Recover first version + cy.get('[data-cy=collection-version-browser]').within(() => { + cy.get('[data-cy=collection-version-browser-select-1]').click(); + }); + cy.get('[data-cy=collection-panel-options-btn]').click() + cy.get('[data-cy=context-menu]').contains('Recover version').click(); + cy.get('[data-cy=collection-info-panel]') + .should('not.contain', 'This is an old version'); + cy.get('[data-cy=collection-version-number]').should('contain', '4'); + cy.get('[data-cy=collection-info-panel]').should('contain', colName); + cy.get('[data-cy=collection-files-panel]') + .should('contain', 'foo').and('contain', 'bar'); }); }); })