keycloak-scim/cypress/support/pages/admin_console/manage/groups/GroupModal.ts
Erik Jan de Wit fc6d2e7ecf fixed test??
2021-05-07 13:38:18 +02:00

26 lines
558 B
TypeScript

export default class GroupModal {
private openButton = "openCreateGroupModal";
private nameInput = "groupNameInput";
private createButton = "createGroup";
private renameButton = "renameGroup";
open(name?: string) {
cy.getId(name || this.openButton).click();
return this;
}
fillGroupForm(name = "") {
cy.getId(this.nameInput).clear().type(name);
return this;
}
clickCreate() {
cy.getId(this.createButton).click();
return this;
}
clickRename() {
cy.getId(this.renameButton).click();
return this;
}
}