keycloak-scim/cypress/support/pages/admin_console/manage/users/UserGroupsPage.ts
Jenny baf2380d1e
Cypress tests: users (#2148)
* add users tests

* delete multiple users from list test

* users from search bar

* remove unnecessary its

* fix group test

* force add group click
2022-02-28 18:48:52 +01:00

29 lines
576 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.findByTestId(this.userGroupsTab).click();
return this;
}
toggleAddGroupModal() {
cy.findByTestId(this.addGroupButton).click({ force: true });
return this;
}
joinGroups() {
cy.findByTestId(this.joinGroupButton).click();
return this;
}
}