mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[AAE-1729] Move task-process filters methods into adf-testing, refactor dropdowns to use dropdown material testing page (#5467)
* [AAE-1729] Move task-process filters methods into adf-testing * [AAE-1729] Add default filters methods in testing package * [AAE-1729] Refactor testing package and e2e to use Dropdown testing page * [AAE-1729] Rename function * [AAE-1729] Fix failing e2e, add click and select dropdown method * [AAE-1729] Fix e2e * [AAE-1729] fix e2e * [AAE-1729] Add default filters methods in testing package * [AAE-1729] Slow down upload speed, fix cancel upload e2e * [AAE-1729] Undo slow down upload speed, fix cancel upload e2e
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { BrowserActions, BrowserVisibility, PaginationPage } from '@alfresco/adf-testing';
|
||||
import { BrowserActions, BrowserVisibility, DropdownPage, PaginationPage } from '@alfresco/adf-testing';
|
||||
import { by, element, ElementFinder } from 'protractor';
|
||||
import { TasksListPage } from '../../process-services/tasks-list.page';
|
||||
|
||||
@@ -34,8 +34,9 @@ export class TaskListDemoPage {
|
||||
dueBefore: ElementFinder = element(by.css("input[data-automation-id='due before']"));
|
||||
dueAfter: ElementFinder = element(by.css("input[data-automation-id='due after']"));
|
||||
taskId: ElementFinder = element(by.css("input[data-automation-id='task id']"));
|
||||
stateDropDownArrow: ElementFinder = element(by.css("mat-form-field[data-automation-id='state'] div[class*='arrow']"));
|
||||
stateSelector: ElementFinder = element(by.css("div[class*='mat-select-panel']"));
|
||||
|
||||
stateDropDownArrow: ElementFinder = element(by.css("mat-form-field[data-automation-id='state']"));
|
||||
stateDropdown = new DropdownPage(this.stateDropDownArrow);
|
||||
|
||||
taskList(): TasksListPage {
|
||||
return this.taskListPage;
|
||||
@@ -138,15 +139,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async selectState(state): Promise<void> {
|
||||
await this.clickOnStateDropDownArrow();
|
||||
|
||||
const stateElement: ElementFinder = element.all(by.cssContainingText('mat-option span', state)).first();
|
||||
await BrowserActions.click(stateElement);
|
||||
}
|
||||
|
||||
async clickOnStateDropDownArrow(): Promise<void> {
|
||||
await BrowserActions.click(this.stateDropDownArrow);
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.stateSelector);
|
||||
await this.stateDropdown.clickDropdownWithOption(state);
|
||||
}
|
||||
|
||||
getAllProcessDefinitionIds(): Promise<any> {
|
||||
|
Reference in New Issue
Block a user