keycloak-scim/cypress/support/pages/admin_console/manage/groups/MoveGroupModal.ts
Erik Jan de Wit 5142d1b4bc
can't move groups to the root level (#485)
* can't move groups to the root level

disabled "Move" button on root level

* can now move groups to root

* added move to root test
2021-04-07 13:58:29 -04:00

24 lines
480 B
TypeScript

export default class MoveGroupModal {
private moveButton = "moveGroup";
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.getId(this.moveButton).click();
return this;
}
}