From: Lucas Di Pentima Date: Thu, 22 Jul 2021 15:17:31 +0000 (-0300) Subject: 17928: Updates collection create integration test. X-Git-Tag: 2.3.0~14^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/83fd81b2e9518ac54f57e5463b6511da6257b2f7 17928: Updates collection create integration test. 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 308ce5f7..75031c12 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -636,19 +636,28 @@ describe('Collection panel tests', function () { const collName = `[Test collection (${Math.floor(999999 * Math.random())})]`; cy.get('[data-cy=form-dialog]') .should('contain', 'New collection') + .and('contain', 'Storage classes') + .and('contain', 'default') + .and('contain', 'foo') + .and('contain', 'bar') .within(() => { cy.get('[data-cy=parent-field]').within(() => { cy.get('input').should('have.value', 'Home project'); - }) + }); cy.get('[data-cy=name-field]').within(() => { cy.get('input').type(collName); - }) + }); + cy.get('[data-cy=checkbox-foo]').click(); }) cy.get('[data-cy=form-submit-btn]').click(); // Confirm that the user was taken to the newly created thing cy.get('[data-cy=form-dialog]').should('not.exist'); cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); cy.get('[data-cy=breadcrumb-last]').should('contain', collName); + cy.get('[data-cy=collection-info-panel]') + .should('contain', 'default') + .and('contain', 'foo') + .and('not.contain', 'bar'); }); it('shows responsible person for collection if available', () => {