mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix the taskFilterCloud unit test and fix the coverage (#4008)
* Fix the taskFilterCloud unit test and fix the coverage * Fix the tslint * Fix e2e test * Fix unit test * Skip e2e related to taskFiltersCloud * rollback version * Rollback the change on cloud angular.json
This commit is contained in:
committed by
Eugenio Romano
parent
885b8fb8b5
commit
c873bf801f
@@ -23,10 +23,8 @@ import { element, by } from 'protractor';
|
||||
|
||||
export class TasksCloudDemoPage {
|
||||
|
||||
myTasks = element(by.css('span[data-automation-id="My Tasks_filter"]'));
|
||||
cancelledTasks = element(by.css('span[data-automation-id="Cancelled Tasks_filter"]'));
|
||||
completedTasks = element(by.css('span[data-automation-id="Completed Tasks_filter"]'));
|
||||
suspendedTasks = element(by.css('span[data-automation-id="Suspended Tasks_filter"]'));
|
||||
myTasks = element(by.css('span[data-automation-id="my-tasks-filter"]'));
|
||||
completedTasks = element(by.css('span[data-automation-id="completed-tasks-filter"]'));
|
||||
activeFilter = element(by.css("mat-list-item[class*='active'] span"));
|
||||
|
||||
taskFiltersCloudComponent(filter) {
|
||||
@@ -41,18 +39,10 @@ export class TasksCloudDemoPage {
|
||||
return new TaskFiltersCloudComponent(this.myTasks);
|
||||
}
|
||||
|
||||
cancelledTasksFilter() {
|
||||
return new TaskFiltersCloudComponent(this.cancelledTasks);
|
||||
}
|
||||
|
||||
completedTasksFilter() {
|
||||
return new TaskFiltersCloudComponent(this.completedTasks);
|
||||
}
|
||||
|
||||
suspendedTasksFilter() {
|
||||
return new TaskFiltersCloudComponent(this.suspendedTasks);
|
||||
}
|
||||
|
||||
customTaskFilter(filterName) {
|
||||
return new TaskFiltersCloudComponent(element(by.css(`span[data-automation-id="${filterName}_filter"]`)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user