mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-3566] Task filters automation test cleanup (#3807)
This commit is contained in:
parent
6abc4d4677
commit
de2992defd
@ -128,10 +128,6 @@ var TaskFiltersPage = function () {
|
|||||||
Util.waitUntilElementIsVisible(emptyTaskDetails);
|
Util.waitUntilElementIsVisible(emptyTaskDetails);
|
||||||
return emptyTaskDetails.getText();
|
return emptyTaskDetails.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getCurrentUrl = function() {
|
|
||||||
return browser.getCurrentUrl();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = TaskFiltersPage;
|
module.exports = TaskFiltersPage;
|
||||||
|
@ -203,11 +203,6 @@ describe('Task Filters Test', () => {
|
|||||||
tasksListPage.checkTaskIsDisplayedInTasksList('Test4');
|
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', () => {
|
it('[C277264] Should display task filter results when task filter is selected', () => {
|
||||||
tasksPage.clickOnCreateButton();
|
tasksPage.clickOnCreateButton();
|
||||||
taskFiltersPage.clickNewTaskButton();
|
taskFiltersPage.clickNewTaskButton();
|
||||||
|
@ -178,7 +178,7 @@ describe('Task Filters Sorting', () => {
|
|||||||
expect(tasksListPage.taskOnTaskListInPosition(3)).toBe(tasks[0].name);
|
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 () => {
|
browser.controlFlow().execute(async () => {
|
||||||
let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation();
|
let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation();
|
||||||
newFilter.name = 'Due last';
|
newFilter.name = 'Due last';
|
||||||
@ -270,7 +270,7 @@ describe('Task Filters Sorting', () => {
|
|||||||
expect(tasksListPage.taskOnTaskListInPosition(3)).toBe(tasks[3].name);
|
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 () => {
|
browser.controlFlow().execute(async () => {
|
||||||
let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation();
|
let newFilter = new this.alfrescoJsApi.activiti.UserProcessInstanceFilterRepresentation();
|
||||||
newFilter.name = 'Due last Open';
|
newFilter.name = 'Due last Open';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user