keycloak-scim/cypress/support/pages/admin_console/manage/users/UserGroupsPage.ts

30 lines
534 B
TypeScript
Raw Normal View History

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