* Add setCompleteDateFilterDropDown() (#6251)

This commit is contained in:
Petruta Bogdana Patrichi 2020-10-16 10:28:21 +03:00 committed by GitHub
parent 217ae445c6
commit 06ff4ff43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,11 +44,13 @@ export class EditTaskFilterCloudComponentPage {
private locatorStatusDropdown = element(by.css(`mat-select[data-automation-id='adf-cloud-edit-task-property-status']`));
private locatorSortDropdown = element(by.css(`mat-select[data-automation-id='adf-cloud-edit-task-property-sort']`));
private locatorOrderDropdown = element(by.css(`mat-select[data-automation-id='adf-cloud-edit-task-property-order']`));
private locatorCompletedDateDropdown = element(by.css(`mat-select[data-automation-id="adf-cloud-edit-process-property-completedDateRange"]`));
appNameDropdown = new DropdownPage(this.locatorAppNameDropdown);
statusDropdown = new DropdownPage(this.locatorStatusDropdown);
sortDropdown = new DropdownPage(this.locatorSortDropdown);
orderDropdown = new DropdownPage(this.locatorOrderDropdown);
completedDateDropdown = new DropdownPage(this.locatorCompletedDateDropdown);
editTaskFilterDialogPage = new EditTaskFilterDialogPage();
@ -94,6 +96,11 @@ export class EditTaskFilterCloudComponentPage {
return this.orderDropdown.getSelectedOptionText();
}
async setCompleteDateFilterDropDown(option: string): Promise<void> {
await this.completedDateDropdown.selectDropdownOption(option);
await this.dataTable.waitTillContentLoaded();
}
async setAssignee(option: string): Promise<void> {
await this.setProperty('assignee', option);
}