keycloak-scim/cypress/support/pages/admin_console/manage/groups/GroupModal.ts
Erik Jan de Wit 50920b3df2
Added rename group and adding members to a group (#448)
* users can now rename groups

* add members to a group

* added cypress test

* remove rename and delete when no group is selected

* added test

* keep selected rows form other pages

* fixed empty first page and cancel button
2021-03-24 10:07:49 -04:00

27 lines
588 B
TypeScript

export default class GroupModal {
private openButton = "openCreateGroupModal";
private nameInput = "groupNameInput";
private createButton = "createGroup";
private renameButton = "renameGroup";
open(name?: string) {
cy.getId(name || this.openButton).click();
return this;
}
fillGroupForm(name = "") {
cy.getId(this.nameInput).clear();
cy.getId(this.nameInput).type(name);
return this;
}
clickCreate() {
cy.getId(this.createButton).click();
return this;
}
clickRename() {
cy.getId(this.renameButton).click();
return this;
}
}