mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ ADF-3821] Start standalone task e2e tests (#4081)
This commit is contained in:
committed by
Eugenio Romano
parent
e72a845c78
commit
9fd9e7f4a9
@@ -27,10 +27,14 @@ export class TasksCloudDemoPage {
|
||||
myTasks = element(by.css('span[data-automation-id="my-tasks-filter"]'));
|
||||
completedTasks = element(by.css('span[data-automation-id="completed-tasks-filter"]'));
|
||||
activeFilter = element(by.css("mat-list-item[class*='active'] span"));
|
||||
|
||||
taskFilters = element(by.css("mat-expansion-panel[data-automation-id='Task Filters']"));
|
||||
|
||||
editTaskFilterCloud = new EditTaskFilterCloudComponent();
|
||||
|
||||
createButton = element(by.css('button[data-automation-id="create-button"'));
|
||||
newTaskButton = element(by.css('button[data-automation-id="btn-start-task"]'));
|
||||
|
||||
taskFiltersCloudComponent(filter) {
|
||||
return new TaskFiltersCloudComponent(filter);
|
||||
}
|
||||
@@ -68,4 +72,29 @@ export class TasksCloudDemoPage {
|
||||
Util.waitUntilElementIsVisible(this.taskFilters);
|
||||
return this.taskFilters.click();
|
||||
}
|
||||
|
||||
openNewTaskForm() {
|
||||
this.createButtonIsDisplayed();
|
||||
this.clickOnCreateButton();
|
||||
this.newTaskButtonIsDisplayed();
|
||||
this.newTaskButton.click();
|
||||
return this;
|
||||
}
|
||||
|
||||
createButtonIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.createButton);
|
||||
return this;
|
||||
}
|
||||
|
||||
newTaskButtonIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.newTaskButton);
|
||||
return this;
|
||||
}
|
||||
|
||||
clickOnCreateButton() {
|
||||
Util.waitUntilElementIsClickable(this.createButton);
|
||||
this.createButton.click();
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user