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:
Maurizio Vitale
2018-11-27 11:52:03 +00:00
committed by Eugenio Romano
parent 885b8fb8b5
commit c873bf801f
6 changed files with 46 additions and 60 deletions

View File

@@ -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"]`)));
}