From de2992defd6eb8443446dbed8766dc18f2e46df4 Mon Sep 17 00:00:00 2001 From: davidcanonieto Date: Wed, 19 Sep 2018 13:32:27 +0100 Subject: [PATCH] [ADF-3566] Task filters automation test cleanup (#3807) --- e2e/pages/adf/process_services/taskFiltersPage.js | 4 ---- e2e/process-services/task_filters_component.e2e.ts | 5 ----- e2e/process-services/task_filters_sorting.e2e.ts | 4 ++-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/e2e/pages/adf/process_services/taskFiltersPage.js b/e2e/pages/adf/process_services/taskFiltersPage.js index 3582cdb3f2..65809339e7 100644 --- a/e2e/pages/adf/process_services/taskFiltersPage.js +++ b/e2e/pages/adf/process_services/taskFiltersPage.js @@ -128,10 +128,6 @@ var TaskFiltersPage = function () { Util.waitUntilElementIsVisible(emptyTaskDetails); return emptyTaskDetails.getText(); } - - this.getCurrentUrl = function() { - return browser.getCurrentUrl(); - } }; module.exports = TaskFiltersPage; diff --git a/e2e/process-services/task_filters_component.e2e.ts b/e2e/process-services/task_filters_component.e2e.ts index 3a86d4cb89..fab07b502f 100644 --- a/e2e/process-services/task_filters_component.e2e.ts +++ b/e2e/process-services/task_filters_component.e2e.ts @@ -203,11 +203,6 @@ describe('Task Filters Test', () => { tasksListPage.checkTaskIsDisplayedInTasksList('Test4'); }); - it('[C260355] Should display task list when app is in task section', () => { - taskFiltersPage.clickQueuedTaskFilter(); - expect(taskFiltersPage.checkActiveFilterActive()).toBe('Queued Tasks'); - }); - it('[C277264] Should display task filter results when task filter is selected', () => { tasksPage.clickOnCreateButton(); taskFiltersPage.clickNewTaskButton(); diff --git a/e2e/process-services/task_filters_sorting.e2e.ts b/e2e/process-services/task_filters_sorting.e2e.ts index 928f1f539c..0b2f8f3451 100644 --- a/e2e/process-services/task_filters_sorting.e2e.ts +++ b/e2e/process-services/task_filters_sorting.e2e.ts @@ -178,7 +178,7 @@ describe('Task Filters Sorting', () => { expect(tasksListPage.taskOnTaskListInPosition(3)).toBe(tasks[0].name); }); - it('[C277257] Should display tasks under new filter from oldest to newest when they are completed', () => { + it('[C277257] Should display tasks under new filter from farthest due date to closest when they are completed', () => { browser.controlFlow().execute(async () => { let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation(); newFilter.name = 'Due last'; @@ -270,7 +270,7 @@ describe('Task Filters Sorting', () => { expect(tasksListPage.taskOnTaskListInPosition(3)).toBe(tasks[3].name); }); - it('[C277261] Should display tasks under new filter from oldest to newest when they are open', () => { + it('[C277261] Should display tasks under new filter from farthest due date to closest when they are open', () => { browser.controlFlow().execute(async () => { let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation(); newFilter.name = 'Due last Open';