X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/992852b9506bd3092bd052c681afca966478f88b..444c41ca81c90ff172c7b1d99ff78f52bff991e8:/cypress/integration/collection.spec.js diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index 6537e162..79a66a4c 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -334,7 +334,7 @@ describe('Collection panel tests', function () { 'bar' // make sure we can go back to the original name as a last step ]; eachPair(names, (from, to) => { - cy.get('[data-cy=collection-files-panel]') + cy.waitForDom().get('[data-cy=collection-files-panel]') .contains(`${from}`).rightclick(); cy.get('[data-cy=context-menu]') .contains('Rename') @@ -951,7 +951,7 @@ describe('Collection panel tests', function () { }).as('testCollection1'); }); - it.only('uploads a file and checks the collection UI to be fresh', () => { + it('uploads a file and checks the collection UI to be fresh', () => { cy.getAll('@testCollection1') .then(function([testCollection1]) { cy.loginAs(activeUser); @@ -963,7 +963,7 @@ describe('Collection panel tests', function () { cy.fixture('files/5mb.bin', 'base64').then(content => { cy.get('[data-cy=drag-and-drop]').upload(content, '5mb_a.bin'); cy.get('[data-cy=form-submit-btn]').click(); - // cy.get('[data-cy=form-submit-btn]').should('not.exist'); + cy.get('[data-cy=form-submit-btn]').should('not.exist'); cy.get('[data-cy=collection-files-panel]') .contains('5mb_a.bin').should('exist'); cy.get('[data-cy=collection-file-count]').should('contain', '3'); @@ -973,9 +973,10 @@ describe('Collection panel tests', function () { cy.fixture('files/5mb.bin', 'base64').then(content => { cy.get('[data-cy=drag-and-drop]').upload(content, '5mb_b.bin'); cy.get('[data-cy=form-submit-btn]').click(); - // cy.get('[data-cy=form-submit-btn]').should('not.exist'); - cy.get('[data-cy=collection-files-panel]') + cy.get('[data-cy=form-submit-btn]').should('not.exist'); + cy.get('[data-cy=collection-files-right-panel]') .contains('5mb_b.bin').should('exist'); + }); }); });