6f4ea86ecb
* 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
29 lines
531 B
TypeScript
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;
|
|
}
|
|
}
|