mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
Refactor tasksListPage (#3952)
This commit is contained in:
committed by
Eugenio Romano
parent
93578baecd
commit
536467f0ee
@@ -38,6 +38,7 @@ export class TasksPage {
|
||||
checklistDialog = element(by.id('checklist-dialog'));
|
||||
checklistNoMessage = element(by.id('checklist-none-message'));
|
||||
numberOfChecklists = element(by.css('[data-automation-id="checklist-label"] mat-chip'));
|
||||
sortByName = by.css('div[data-automation-id="auto_id_name"]');
|
||||
|
||||
createNewTask() {
|
||||
this.createButtonIsDisplayed();
|
||||
@@ -118,10 +119,6 @@ export class TasksPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
getAllDisplayedRows() {
|
||||
return element.all(this.rows).count();
|
||||
}
|
||||
|
||||
completeTaskNoForm() {
|
||||
Util.waitUntilElementIsClickable(this.completeButtonNoForm);
|
||||
this.completeButtonNoForm.click();
|
||||
@@ -165,4 +162,12 @@ export class TasksPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
clickSortByNameAsc() {
|
||||
return this.tasksListPage().getDataTable().sortByColumn(true, this.sortByName);
|
||||
}
|
||||
|
||||
clickSortByNameDesc() {
|
||||
return this.tasksListPage().getDataTable().sortByColumn(false, this.sortByName);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user