mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AD-4222] e2e compilation fixes (#4426)
* Run tsc on the e2e folder and as part of the sh script * in progress * in progress * in progress * in progress * in progress * in progress * fixing compile errors * fixing compile errors. * Fix the apiService and exclude nodemodules * Add semicolumn * fix import * fix configuration test package * fix * fix errors * fix typescript * restore packages.json * fix errors after rebase * fix type prolems and add protracotr path mapping * remove undefined
This commit is contained in:
committed by
Eugenio Romano
parent
f891ea3df5
commit
fc2132e248
@@ -437,7 +437,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
taskListSinglePage.taskList().checkContentIsDisplayed(paginationTasksName[13]);
|
||||
taskListSinglePage.taskList().getRowsDisplayedWithSameName(paginationTasksName[13]).then((list) => {
|
||||
expect(list.count()).toEqual(2);
|
||||
expect(list.length).toEqual(2);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -371,7 +371,7 @@ describe('Start Process Component', () => {
|
||||
processFiltersPage.clickRunningFilterButton();
|
||||
processFiltersPage.selectFromProcessList('Active Task');
|
||||
processDetailsPage.clickOnActiveTask();
|
||||
processDetailsPage.checkActiveTaskTitleIsDisplayed(app.task_name);
|
||||
processDetailsPage.checkActiveTaskTitleIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C260457] Should display process in Completed when cancelled', () => {
|
||||
|
@@ -253,7 +253,7 @@ describe('Task', () => {
|
||||
|
||||
it('[C260350] Should display a new filter when a filter is added', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'New Task Filter';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -277,7 +277,7 @@ describe('Task', () => {
|
||||
|
||||
it('[C286447] Should display the task filter icon when a custom filter is added', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'New Task Filter with icon';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-cloud';
|
||||
@@ -317,7 +317,7 @@ describe('Task', () => {
|
||||
|
||||
it('[C260353] Should display changes on a filter when this filter is edited', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'New Task Filter';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -334,7 +334,7 @@ describe('Task', () => {
|
||||
taskFiltersDemoPage.customTaskFilter('New Task Filter').checkTaskFilterIsDisplayed();
|
||||
|
||||
browser.controlFlow().execute(() => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Task Filter Edited';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -356,7 +356,7 @@ describe('Task', () => {
|
||||
|
||||
it('[C286448] Should display changes on a task filter when this filter icon is edited', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Task Filter Edited icon';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -373,7 +373,7 @@ describe('Task', () => {
|
||||
taskFiltersDemoPage.customTaskFilter('Task Filter Edited icon').checkTaskFilterIsDisplayed();
|
||||
|
||||
browser.controlFlow().execute(() => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Task Filter Edited icon';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-cloud';
|
||||
@@ -397,11 +397,11 @@ describe('Task', () => {
|
||||
|
||||
it('[C260354] Should not display task filter when this filter is deleted', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'New Task Filter';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
newFilter.filter = { sort: 'created-desc', state: 'completed', assignment: 'involved' };
|
||||
newFilter.filter = <any> { sort: 'created-desc', state: 'completed', assignment: 'involved' };
|
||||
|
||||
let result = await this.alfrescoJsApi.activiti.userFiltersApi.createUserTaskFilter(newFilter);
|
||||
|
||||
|
@@ -100,13 +100,9 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
});
|
||||
|
||||
// afterAll(async(done) => {
|
||||
// await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
|
||||
// done();
|
||||
// });
|
||||
it('[C277254] Should display tasks under new filter from newest to oldest when they are completed', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Newest first';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -129,7 +125,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
it('[C277255] Should display tasks under new filter from oldest to newest when they are completed', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Newest last';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -151,7 +147,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
it('[C277256] Should display tasks under new filter from closest due date to farthest when they are completed', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Due first';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -173,7 +169,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
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 UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Due last';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -195,7 +191,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
it('[C277258] Should display tasks under new filter from newest to oldest when they are open ', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Newest first Open';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -217,7 +213,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
it('[C277259] Should display tasks under new filter from oldest to newest when they are open', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Newest last Open';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -239,7 +235,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
it('[C277260] Should display tasks under new filter from closest due date to farthest when they are open', () => {
|
||||
browser.controlFlow().execute(async () => {
|
||||
let newFilter = new UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Due first Open';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
@@ -261,7 +257,7 @@ describe('Task Filters Sorting', () => {
|
||||
|
||||
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 UserProcessInstanceFilterRepresentation();
|
||||
let newFilter: any = new UserProcessInstanceFilterRepresentation();
|
||||
newFilter.name = 'Due last Open';
|
||||
newFilter.appId = appId;
|
||||
newFilter.icon = 'glyphicon-filter';
|
||||
|
Reference in New Issue
Block a user