2021-03-29 11:37:47 +00:00
|
|
|
export default class MoveGroupModal {
|
|
|
|
private moveButton = "moveGroup";
|
|
|
|
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() {
|
|
|
|
cy.getId(this.moveButton).click();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|