2c9b77c425
* Introduced new GroupPicker. Can be used for move group or join group * Moved help texts to help.json * don't set state when there was no request * add pagination * remove "Groups" link on root level * use path in chip instread of name * fixes filtering to show search not found and removes `+1` logic from pager * fix breadcrumb and layout * fixed all the tests
29 lines
540 B
TypeScript
29 lines
540 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 = "users: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;
|
|
}
|
|
}
|