keycloak-scim/cypress/support/pages/admin_console/manage/groups/MoveGroupModal.ts

27 lines
589 B
TypeScript
Raw Normal View History

export default class MoveGroupModal {
private moveButton = "joinGroup";
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() {
2021-05-20 15:38:10 +00:00
cy.intercept("/auth/admin/realms/master/groups/*/members").as("groupMove");
cy.getId(this.moveButton).click();
2021-05-20 15:38:10 +00:00
cy.wait(["@groupMove"]);
return this;
}
}