keycloak-scim/cypress/support/pages/admin_console/manage/groups/CreateGroupModal.ts
Erik Jan de Wit a48088765a
Search and create sub groups (#387)
* fixed group section

* simplified create group dialog

* create subgroup

* initial search groups

* added initial search

* add empty state and links to details

* Added cypress tests

* fixed types

* changed to the more clear getId

* changed to use testid

* fixed merge error

* fixed test

* changed text for empty sub groups

* fix merge error

* fix test
2021-03-01 10:06:04 -05:00

21 lines
473 B
TypeScript

export default class CreateGroupModal {
private openButton = "openCreateGroupModal";
private nameInput = "groupNameInput";
private createButton = "createGroup";
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;
}
}