mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3706] implement startedBy process filter property (#6077)
* [ACA-3706] implement startedBy filter property * fix lint * [ACA-3706] implement startedBy filter * replace initiator with people cloud component * small changes * fix user selection mode * revert unnecesary change * fix e2e * fix process filter e2e tests * fix more e2e Co-authored-by: Silviu Popa <p3701014@L3700101120.ness.com>
This commit is contained in:
@@ -19,6 +19,7 @@ import { EditProcessFilterDialogPage } from './dialog/edit-process-filter-dialog
|
||||
import { BrowserVisibility } from '../../core/utils/browser-visibility';
|
||||
import { BrowserActions } from '../../core/utils/browser-actions';
|
||||
import { DropdownPage } from '../../core/pages/material/dropdown.page';
|
||||
import { PeopleCloudComponentPage } from './people-cloud-component.page';
|
||||
|
||||
export class EditProcessFilterCloudComponentPage {
|
||||
|
||||
@@ -39,6 +40,7 @@ export class EditProcessFilterCloudComponentPage {
|
||||
sortDropdown = new DropdownPage(this.locatorSortDropdown);
|
||||
orderDropdown = new DropdownPage(this.locatorOrderDropdown);
|
||||
processDefinitionNameDropdown = new DropdownPage(this.locatorProcessDefinitionNameDropdown);
|
||||
peopleCloudComponent = new PeopleCloudComponentPage();
|
||||
|
||||
editProcessFilterDialogPage = new EditProcessFilterDialogPage();
|
||||
|
||||
@@ -133,6 +135,10 @@ export class EditProcessFilterCloudComponentPage {
|
||||
await this.setProperty('processName', option);
|
||||
}
|
||||
|
||||
async setInitiator(value: string): Promise<void> {
|
||||
await this.peopleCloudComponent.searchAssigneeAndSelect(value);
|
||||
}
|
||||
|
||||
async getProcessInstanceId(): Promise<string> {
|
||||
return this.getProperty('processInstanceId');
|
||||
}
|
||||
@@ -205,7 +211,7 @@ export class EditProcessFilterCloudComponentPage {
|
||||
if (status) { await this.setStatusFilterDropDown(status); }
|
||||
if (sort) { await this.setSortFilterDropDown(sort); }
|
||||
if (order) { await this.setOrderFilterDropDown(order); }
|
||||
if (initiator) { await this.setProperty('initiator', initiator); }
|
||||
if (initiator) { await this.setInitiator(initiator); }
|
||||
if (processName) { await this.setProcessName(processName); }
|
||||
await this.openFilter();
|
||||
}
|
||||
|
Reference in New Issue
Block a user