From d8caf3b98c1b14aa4aba30be0fcafaf8a0c16813 Mon Sep 17 00:00:00 2001 From: Marouan Bentaleb <38426175+marouanbentaleb@users.noreply.github.com> Date: Thu, 16 May 2019 10:27:37 +0100 Subject: [PATCH] [ADF-4540] Fix task-list-properties.e2e.ts (#4730) --- e2e/process-services-cloud/task-list-properties.e2e.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/e2e/process-services-cloud/task-list-properties.e2e.ts b/e2e/process-services-cloud/task-list-properties.e2e.ts index 4dad64e1b8..f3c6c00a0e 100644 --- a/e2e/process-services-cloud/task-list-properties.e2e.ts +++ b/e2e/process-services-cloud/task-list-properties.e2e.ts @@ -208,7 +208,7 @@ describe('Edit task filters and task list properties', () => { expect(tasksCloudDemoPage.taskListCloudComponent().getNoTasksFoundMessage()).toEqual(noTasksFoundMessage); }); - xit('[C297480] Should be able to see only tasks that are part of a specific process when processInstanceId is set', () => { + it('[C297480] Should be able to see only tasks that are part of a specific process when processInstanceId is set', () => { tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed(); expect(tasksCloudDemoPage.getActiveFilterName()).toBe('My Tasks'); @@ -277,7 +277,7 @@ describe('Edit task filters and task list properties', () => { tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name); }); - xit('[C297486] Filter by Owner', () => { + it('[C297486] Filter by Owner', () => { tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed(); expect(tasksCloudDemoPage.getActiveFilterName()).toBe('My Tasks'); @@ -554,11 +554,9 @@ describe('Edit task filters and task list properties', () => { tasksCloudDemoPage.taskListCloudComponent().getDataTable().checkSpinnerIsDisplayed(); tasksCloudDemoPage.taskListCloudComponent().getDataTable().checkSpinnerIsNotDisplayed(); tasksCloudDemoPage.taskListCloudComponent().getAllRowsByPriorityColumn().then((list) => { + list = list.map(Number); const initialList = list.slice(0); - list.sort(function (firstStr, secondStr) { - return firstStr.localeCompare(secondStr); - }); - list.reverse(); + list.sort((a, b) => b - a); expect(JSON.stringify(initialList) === JSON.stringify(list)).toEqual(true); }); });