Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
- beforeEach(function() {
- cy.clearCookies();
- cy.clearLocalStorage();
- });
-
it('creates a new group', function() {
cy.loginAs(activeUser);
it('creates a new group', function() {
cy.loginAs(activeUser);
});
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);
.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