From: Lucas Di Pentima Date: Fri, 2 Jul 2021 19:31:02 +0000 (-0300) Subject: 17782: Fixes cypress tests. X-Git-Tag: 2.2.2~29^2~13 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/3f5ec835d8c929fd0389e5220d315a6526f733cc 17782: Fixes cypress 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 797a9d49..f3b63218 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -586,7 +586,7 @@ describe('Collection panel tests', function () { cy.get('[data-cy=breadcrumb-last]').should('contain', collName); }); - it.only('shows responsible person for collection if available', () => { + it('shows responsible person for collection if available', () => { cy.createCollection(adminUser.token, { name: `Test collection ${Math.floor(Math.random() * 999999)}`, owner_uuid: activeUser.user.uuid, diff --git a/cypress/integration/sharing.spec.js b/cypress/integration/sharing.spec.js index 5786c41d..14eb9ace 100644 --- a/cypress/integration/sharing.spec.js +++ b/cypress/integration/sharing.spec.js @@ -74,6 +74,10 @@ describe('Sharing tests', function () { cy.get('[data-cy=context-menu]').should('contain', 'Move to trash'); cy.get('[data-cy=context-menu]').contains('Move to trash').click(); + // GUARD: Let's wait for the above removed project to disappear + // before continuing, to avoid intermittent failures. + cy.get('main').should('not.contain', mySharedWritableProject.name); + cy.get('main').contains(mySharedReadonlyProject.name).rightclick(); cy.get('[data-cy=context-menu]').should('not.contain', 'Move to trash'); });