mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-4535] Fix people-group-cloud-component.e2e.ts (#4725)
This commit is contained in:
committed by
Denys Vuika
parent
514b31d975
commit
0af9e45cff
@@ -21,6 +21,8 @@ import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
|
||||
export class PeopleGroupCloudComponentPage {
|
||||
|
||||
peopleCloudSingleSelectionChecked = element(by.css('mat-radio-button[data-automation-id="adf-people-single-mode"][class*="mat-radio-checked"]'));
|
||||
peopleCloudMultipleSelectionChecked = element(by.css('mat-radio-button[data-automation-id="adf-people-multiple-mode"][class*="mat-radio-checked"]'));
|
||||
peopleCloudSingleSelection = element(by.css('mat-radio-button[data-automation-id="adf-people-single-mode"]'));
|
||||
peopleCloudMultipleSelection = element(by.css('mat-radio-button[data-automation-id="adf-people-multiple-mode"]'));
|
||||
peopleCloudFilterRole = element(by.css('mat-radio-button[data-automation-id="adf-people-filter-role"]'));
|
||||
groupCloudSingleSelection = element(by.css('mat-radio-button[data-automation-id="adf-group-single-mode"]'));
|
||||
@@ -48,6 +50,10 @@ export class PeopleGroupCloudComponentPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
clickPeopleCloudSingleSelection() {
|
||||
BrowserActions.click(this.peopleCloudSingleSelection);
|
||||
}
|
||||
|
||||
clickPeopleCloudMultipleSelection() {
|
||||
BrowserActions.click(this.peopleCloudMultipleSelection);
|
||||
}
|
||||
@@ -56,6 +62,14 @@ export class PeopleGroupCloudComponentPage {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.peopleCloudSingleSelectionChecked);
|
||||
}
|
||||
|
||||
checkPeopleCloudMultipleSelectionIsSelected() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.peopleCloudMultipleSelectionChecked);
|
||||
}
|
||||
|
||||
checkPeopleCloudFilterRole() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.peopleCloudFilterRole);
|
||||
}
|
||||
|
||||
clickPeopleCloudFilterRole() {
|
||||
BrowserActions.click(this.peopleCloudFilterRole);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user