mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3989] appname duplicated after switching between saved filters (#4395)
* C297646 - automated * linting fixes
This commit is contained in:
committed by
Eugenio Romano
parent
8b8f1e147f
commit
10699cb7b0
@@ -98,6 +98,32 @@ export class EditProcessFilterCloudComponent {
|
||||
Util.waitUntilElementIsVisible(this.selectedOption);
|
||||
}
|
||||
|
||||
setAppNameDropDown(option) {
|
||||
this.clickOnDropDownArrow('appName');
|
||||
|
||||
let appNameElement = element.all(by.cssContainingText('mat-option span', option)).first();
|
||||
Util.waitUntilElementIsClickable(appNameElement);
|
||||
Util.waitUntilElementIsVisible(appNameElement);
|
||||
appNameElement.click();
|
||||
return this;
|
||||
}
|
||||
|
||||
async checkAppNamesAreUnique() {
|
||||
let appNameList = element.all(by.css('mat-option[data-automation-id="adf-cloud-edit-process-property-optionsappName"] span'));
|
||||
let appTextList = await appNameList.getText();
|
||||
let uniqueArray = appTextList.filter((appName) => {
|
||||
let sameAppNameArray = appTextList.filter((eachApp) => eachApp === appName);
|
||||
return sameAppNameArray.length === 1;
|
||||
});
|
||||
return uniqueArray.length === appTextList.length;
|
||||
}
|
||||
|
||||
getNumberOfAppNameOptions() {
|
||||
this.clickOnDropDownArrow('appName');
|
||||
let dropdownOptions = element.all(by.css('.mat-select-panel mat-option'));
|
||||
return dropdownOptions.count();
|
||||
}
|
||||
|
||||
setProcessInstanceId(option) {
|
||||
return this.setProperty('processInstanceId', option);
|
||||
}
|
||||
|
Reference in New Issue
Block a user