keycloak-scim/cypress/support/pages/admin_console/manage/users/UserGroupsPage.ts
Eugenia 6f4ea86ecb
Users(groups): Add modal for joining user groups (#513)
* add cypress test to add groups to user

* add test to leave group

* format

* update snapshots

* add user to groups modal wip

* wip join group functionality

* add modal to add user groups

* add refresh

* remove comment

* lint and format

* fix empty state

* add cypress test to add groups to user

* format

* revert snap

* remove existing joined groups from modal
2021-04-14 14:19:39 -04:00

29 lines
531 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 = "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;
}
}