mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4458]Add expand cloud custom filter method
* [ACA-4458]Add expand cloud custom filter method * Fix comment * Rename method * Fix comment * Fix comment
This commit is contained in:
@@ -67,10 +67,16 @@ export class EditProcessFilterCloudComponentPage {
|
||||
await browser.driver.sleep(5000);
|
||||
}
|
||||
|
||||
async checkCustomiseFilterHeaderIsExpanded(): Promise<void> {
|
||||
const expansionPanelExtended = element.all(by.css('mat-expansion-panel-header[class*="mat-expanded"]')).first();
|
||||
async expandFilter(): Promise<void> {
|
||||
await this.isFilterDisplayed();
|
||||
await BrowserActions.click(this.customiseFilter);
|
||||
await this.checkHeaderIsExpanded();
|
||||
}
|
||||
|
||||
async checkHeaderIsExpanded(): Promise<void> {
|
||||
const expansionPanelExtended = element.all(by.css('mat-expansion-panel-header.mat-expanded')).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(expansionPanelExtended);
|
||||
const content = element.all(by.css('div[class*="mat-expansion-panel-content "][style*="visible"]')).first();
|
||||
const content = element.all(by.css('div.mat-expansion-panel-content[style*="visible"]')).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(content);
|
||||
}
|
||||
|
||||
@@ -218,7 +224,7 @@ export class EditProcessFilterCloudComponentPage {
|
||||
}
|
||||
|
||||
async setFilter(props: FilterProps): Promise<void> {
|
||||
await this.openFilter();
|
||||
await this.expandFilter();
|
||||
if (props.name) { await this.setProcessName(props.name); }
|
||||
if (props.status) { await this.setStatusFilterDropDown(props.status); }
|
||||
if (props.sort) { await this.setSortFilterDropDown(props.sort); }
|
||||
|
@@ -78,6 +78,19 @@ export class EditTaskFilterCloudComponentPage {
|
||||
await browser.driver.sleep(1000);
|
||||
}
|
||||
|
||||
async expandFilter(): Promise<void> {
|
||||
await this.isFilterDisplayed();
|
||||
await BrowserActions.click(this.customiseFilter);
|
||||
await this.checkHeaderIsExpanded();
|
||||
}
|
||||
|
||||
async checkHeaderIsExpanded(): Promise<void> {
|
||||
const expansionPanelExtended = element.all(by.css('mat-expansion-panel-header.mat-expanded')).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(expansionPanelExtended);
|
||||
const content = element.all(by.css('div.mat-expansion-panel-content[style*="visible"]')).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(content);
|
||||
}
|
||||
|
||||
async setStatusFilterDropDown(option: StatusType): Promise<void> {
|
||||
await this.statusDropdown.selectDropdownOption(option);
|
||||
await this.dataTable.waitTillContentLoaded();
|
||||
|
Reference in New Issue
Block a user