2c9b77c425
* Introduced new GroupPicker. Can be used for move group or join group * Moved help texts to help.json * don't set state when there was no request * add pagination * remove "Groups" link on root level * use path in chip instread of name * fixes filtering to show search not found and removes `+1` logic from pager * fix breadcrumb and layout * fixed all the tests
34 lines
706 B
TypeScript
34 lines
706 B
TypeScript
export default class GroupModal {
|
|
private nameInput = "groupNameInput";
|
|
private createButton = "createGroup";
|
|
private renameButton = "renameGroup";
|
|
|
|
open(name?: string) {
|
|
if (name) {
|
|
cy.getId(name).click();
|
|
} else {
|
|
cy.get("button").contains("Create").click();
|
|
}
|
|
return this;
|
|
}
|
|
|
|
fillGroupForm(name = "") {
|
|
cy.getId(this.nameInput).clear().type(name);
|
|
return this;
|
|
}
|
|
|
|
clickCreate() {
|
|
cy.intercept("/auth/admin/realms/master/groups/*/members").as(
|
|
"groupCreate"
|
|
);
|
|
cy.getId(this.createButton).click();
|
|
cy.wait(["@groupCreate"]);
|
|
|
|
return this;
|
|
}
|
|
|
|
clickRename() {
|
|
cy.getId(this.renameButton).click();
|
|
return this;
|
|
}
|
|
}
|