mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix ordering e2e failing test (#4825)
* ordering fix use common method in datatable * ordering fix use common method in datatable * fix sorting ps e2e * fix ordering * move search page in testing and fix sorting boolean flag * fix import * fix moment * use common sort method in document list test * use common sort method in document list test * remove unnecesary sort control * remove duplicate test * remove e2e suspended removed status * documentation
This commit is contained in:
@@ -34,7 +34,7 @@ export class FiltersPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
sortByName(sortOrder) {
|
||||
sortByName(sortOrder: string) {
|
||||
this.dataTable.sortByColumn(sortOrder, 'name');
|
||||
}
|
||||
|
||||
|
@@ -96,9 +96,9 @@ export class ProcessFiltersPage {
|
||||
/**
|
||||
* Sort the list by name column.
|
||||
*
|
||||
* @param sortOrder : 'true' to sort the list ascendant and 'false' for descendant
|
||||
* @param sortOrder : 'ASC' to sort the list ascendant and 'DESC' for descendant
|
||||
*/
|
||||
sortByName(sortOrder) {
|
||||
sortByName(sortOrder: string) {
|
||||
this.dataTable.sortByColumn(sortOrder, 'name');
|
||||
}
|
||||
|
||||
|
@@ -151,11 +151,11 @@ export class TasksPage {
|
||||
}
|
||||
|
||||
clickSortByNameAsc() {
|
||||
return this.tasksListPage().getDataTable().sortByColumn(true, 'name');
|
||||
return this.tasksListPage().getDataTable().sortByColumn('ASC', 'name');
|
||||
}
|
||||
|
||||
clickSortByNameDesc() {
|
||||
return this.tasksListPage().getDataTable().sortByColumn(false, 'name');
|
||||
return this.tasksListPage().getDataTable().sortByColumn('DESC', 'name');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user