From: Lucas Di Pentima Date: Mon, 20 Dec 2021 20:08:38 +0000 (-0300) Subject: 18219: Fixes group management tests. X-Git-Tag: 2.4.0~21^2~4 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/160074ea7d482f01ac7f7ff31a5a9e076fe5420d 18219: Fixes group management tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/cypress/integration/group-manage.spec.js b/cypress/integration/group-manage.spec.js index c98c2201..5da18687 100644 --- a/cypress/integration/group-manage.spec.js +++ b/cypress/integration/group-manage.spec.js @@ -36,11 +36,6 @@ describe('Group manage tests', function() { ); }); - beforeEach(function() { - cy.clearCookies(); - cy.clearLocalStorage(); - }); - it('creates a new group', function() { cy.loginAs(activeUser); @@ -57,7 +52,7 @@ describe('Group manage tests', function() { }); cy.get('[role=tooltip]').click(); cy.get('[data-cy=form-dialog] button[type=submit]').click(); - + // Check that the group was created cy.get('[data-cy=groups-panel-data-explorer]').contains(groupName).click(); cy.get('[data-cy=group-members-data-explorer]').contains(activeUser.user.full_name); @@ -230,7 +225,7 @@ describe('Group manage tests', function() { .should('contain', 'Edit Group') .within(() => { cy.get('input[name=name]').clear().type(groupName + ' (renamed)'); - cy.get('button[type=submit]').click(); + cy.get('button').contains('Save').click(); }); // Check that the group was renamed