From f0ecfdc83d1807bfd81b285b76351e48db2ff992 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 16 May 2022 11:30:31 -0300 Subject: [PATCH] 16115: Fixes cypress tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/integration/sharing.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/integration/sharing.spec.js b/cypress/integration/sharing.spec.js index 5a297136..df7c7436 100644 --- a/cypress/integration/sharing.spec.js +++ b/cypress/integration/sharing.spec.js @@ -46,7 +46,8 @@ describe('Sharing tests', function () { cy.get('.sharing-dialog').as('sharingDialog'); cy.get('[data-cy=invite-people-field]').find('input').type(activeUser.user.email); cy.get('[role=tooltip]').click(); - cy.get('@sharingDialog').contains('Save').click(); + cy.get('@sharingDialog').contains('Save changes').click(); + cy.get('@sharingDialog').contains('Close').click(); }); cy.createGroup(adminUser.token, { @@ -61,7 +62,8 @@ describe('Sharing tests', function () { cy.get('.sharing-dialog').as('sharingDialog'); cy.get('[data-cy=invite-people-field]').find('input').type(activeUser.user.email); cy.get('[role=tooltip]').click(); - cy.get('@sharingDialog').contains('Save').click(); + cy.get('@sharingDialog').contains('Save changes').click(); + cy.get('@sharingDialog').contains('Close').click(); }); cy.getAll('@mySharedWritableProject', '@mySharedReadonlyProject') @@ -95,7 +97,7 @@ describe('Sharing tests', function () { cy.getAll('@mySharedWritableProject') .then(function ([mySharedWritableProject]) { cy.loginAs(activeUser); - + cy.get('[data-cy=side-panel-tree]').contains('Shared with me').click(); const newProjectName = `New project name ${mySharedWritableProject.name}`; -- 2.30.2