mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-5840] Adding dropdown method needed for e2e test (#7494)
* [AAE-5840] Automate manual test * trigger travis
This commit is contained in:
@@ -44,6 +44,10 @@ export class DropdownPage {
|
|||||||
return BrowserActions.getText($('mat-form-field span'));
|
return BrowserActions.getText($('mat-form-field span'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getDropdownOptionList(): Promise<string> {
|
||||||
|
return BrowserActions.getArrayText(this.dropDownElement.$$(`[role*='option']`));
|
||||||
|
}
|
||||||
|
|
||||||
async getNumberOfOptions(): Promise<number> {
|
async getNumberOfOptions(): Promise<number> {
|
||||||
const dropdownOptions = $$('.mat-select-panel mat-option');
|
const dropdownOptions = $$('.mat-select-panel mat-option');
|
||||||
return dropdownOptions.count();
|
return dropdownOptions.count();
|
||||||
|
Reference in New Issue
Block a user