2021-03-29 11:37:47 +00:00
|
|
|
export default class MoveGroupModal {
|
2021-05-06 05:31:40 +00:00
|
|
|
private moveButton = "joinGroup";
|
2021-03-29 11:37:47 +00:00
|
|
|
private title = ".pf-c-modal-box__title";
|
|
|
|
|
|
|
|
clickRow(groupName: string) {
|
|
|
|
cy.getId(groupName).click();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
2021-04-07 17:58:29 +00:00
|
|
|
clickRoot() {
|
|
|
|
cy.get(".pf-c-breadcrumb__item > button").click();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
2021-03-29 11:37:47 +00:00
|
|
|
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");
|
2021-03-29 11:37:47 +00:00
|
|
|
cy.getId(this.moveButton).click();
|
2021-05-20 15:38:10 +00:00
|
|
|
cy.wait(["@groupMove"]);
|
2021-03-29 11:37:47 +00:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|