From 3f5ec835d8c929fd0389e5220d315a6526f733cc Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Fri, 2 Jul 2021 16:31:02 -0300 Subject: [PATCH] 17782: Fixes cypress tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/integration/collection.spec.js | 2 +- cypress/integration/sharing.spec.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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'); }); -- 2.30.2