mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4540] Fix task-list-properties.e2e.ts (#4730)
This commit is contained in:
committed by
Denys Vuika
parent
cf68f656cf
commit
d8caf3b98c
@@ -208,7 +208,7 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
expect(tasksCloudDemoPage.taskListCloudComponent().getNoTasksFoundMessage()).toEqual(noTasksFoundMessage);
|
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();
|
tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
|
||||||
expect(tasksCloudDemoPage.getActiveFilterName()).toBe('My Tasks');
|
expect(tasksCloudDemoPage.getActiveFilterName()).toBe('My Tasks');
|
||||||
|
|
||||||
@@ -277,7 +277,7 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name);
|
tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
xit('[C297486] Filter by Owner', () => {
|
it('[C297486] Filter by Owner', () => {
|
||||||
tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
|
tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
|
||||||
expect(tasksCloudDemoPage.getActiveFilterName()).toBe('My Tasks');
|
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().checkSpinnerIsDisplayed();
|
||||||
tasksCloudDemoPage.taskListCloudComponent().getDataTable().checkSpinnerIsNotDisplayed();
|
tasksCloudDemoPage.taskListCloudComponent().getDataTable().checkSpinnerIsNotDisplayed();
|
||||||
tasksCloudDemoPage.taskListCloudComponent().getAllRowsByPriorityColumn().then((list) => {
|
tasksCloudDemoPage.taskListCloudComponent().getAllRowsByPriorityColumn().then((list) => {
|
||||||
|
list = list.map(Number);
|
||||||
const initialList = list.slice(0);
|
const initialList = list.slice(0);
|
||||||
list.sort(function (firstStr, secondStr) {
|
list.sort((a, b) => b - a);
|
||||||
return firstStr.localeCompare(secondStr);
|
|
||||||
});
|
|
||||||
list.reverse();
|
|
||||||
expect(JSON.stringify(initialList) === JSON.stringify(list)).toEqual(true);
|
expect(JSON.stringify(initialList) === JSON.stringify(list)).toEqual(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user