keycloak-scim/cypress/support/pages/admin_console/manage/users/UserGroupsPage.ts
2021-04-20 10:12:29 -04:00

29 lines
534 B
TypeScript

export default class UserGroupsPage {
userGroupsTab: string;
addGroupButton: string;
joinGroupButton: string;
constructor() {
this.userGroupsTab = "user-groups-tab";
this.addGroupButton = "add-group-button";
this.joinGroupButton = "join-button";
}
goToGroupsTab() {
cy.getId(this.userGroupsTab).click();
return this;
}
toggleAddGroupModal() {
cy.getId(this.addGroupButton).click();
return this;
}
joinGroups() {
cy.getId(this.joinGroupButton).click();
return this;
}
}