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:
Eugenio Romano
2019-06-11 07:34:16 +01:00
committed by GitHub
parent c85df84a01
commit 990fa4625b
43 changed files with 951 additions and 477 deletions

View File

@@ -34,7 +34,7 @@ export class FiltersPage {
return this;
}
sortByName(sortOrder) {
sortByName(sortOrder: string) {
this.dataTable.sortByColumn(sortOrder, 'name');
}

View File

@@ -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');
}

View File

@@ -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');
}
}