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

30 lines
531 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";
this.joinGroupButton = "joinGroup";
}
goToGroupsTab() {
cy.getId(this.userGroupsTab).click();
return this;
}
toggleAddGroupModal() {
cy.getId(this.addGroupButton).click();
return this;
}
joinGroup() {
cy.getId(this.joinGroupButton).click();
return this;
}
}