18219: Fixes group management tests.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 20 Dec 2021 20:08:38 +0000 (17:08 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 20 Dec 2021 20:08:38 +0000 (17:08 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

cypress/integration/group-manage.spec.js

index c98c2201202967b4e803d581154a2fae75fbbd50..5da1868771ba03e480cbc4848c00f980a542e6f3 100644 (file)
@@ -36,11 +36,6 @@ describe('Group manage tests', function() {
         );
     });
 
         );
     });
 
-    beforeEach(function() {
-        cy.clearCookies();
-        cy.clearLocalStorage();
-    });
-
     it('creates a new group', function() {
         cy.loginAs(activeUser);
 
     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();
             });
         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);
         // 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)');
             .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
             });
 
         // Check that the group was renamed