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

22 lines
473 B
TypeScript
Raw Normal View History

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