keycloak-scim/cypress/support/pages/admin_console/manage/groups/MoveGroupModal.ts
Erik Jan de Wit 2c9b77c425
Fixing UXD review for user (#648)
* 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
2021-06-16 07:35:03 -04:00

26 lines
602 B
TypeScript

export default class MoveGroupModal {
private moveButton = "groups:moveHere-button";
private title = ".pf-c-modal-box__title";
clickRow(groupName: string) {
cy.getId(groupName).click();
return this;
}
clickRoot() {
cy.get(".pf-c-breadcrumb__item > button").click();
return this;
}
checkTitle(title: string) {
cy.get(this.title).should("have.text", title);
return this;
}
clickMove() {
cy.intercept("/auth/admin/realms/master/groups/*/members").as("groupMove");
cy.getId(this.moveButton).click();
cy.wait(["@groupMove"]);
return this;
}
}