[ADF-3331] Automated tests for Viewer Component (#3615)

* Automation tests for Viewer Component - Content Services

* Deleting alfresco-ng2-components.iml

* Updating Viewer Page for failing tests

* Adding tests for Viewer Component and some minor changes on Viewer Component - Content Services

* Removing some lines used to test

* Automation tests for Viewer component and Viewer component - Integration with Router + minor changes on tests for Viewer Component - Content Services

* Correcting an import + some improvement to the code

* Correcting tests for opening different file extensions

* Removing a console.log I forgot

* Refactoring the test in Viewer Component

* Refacotring using lint

* Adding browser refresh after each file type

* Moving tests to proper folder

* Minor changes

* remove faulty BE files from e2e

* fix test viewer

* fix process service tests

* fix test

* fix process test

* fix lint
timeout decrease

* increase some timeouts to fix CS e2e

* lint fix
This commit is contained in:
Marouan Bentaleb
2018-09-25 21:58:22 +01:00
committed by Eugenio Romano
parent bb6bb4fe0f
commit 5a6d8d8a2a
67 changed files with 2176 additions and 99 deletions

View File

@@ -494,8 +494,7 @@
},
"adf-start-process": {
"name": "My Default Name",
"processDefinitionName": "My default process def name",
"defaultProcessSelected": true
"processDefinitionName": "My default process def name"
},
"adf-process-list": {
"presets": {

View File

@@ -204,7 +204,6 @@
[appId]="appId"
[name]="defaultProcessName"
[processDefinitionName]="defaultProcessDefinitionName"
[defaultProcessSelected]="defaultProcessSelected"
(formContentClicked)="onContentClick($event)"
(start)="onStartProcessInstance($event)"
(cancel)="onCancelProcessInstance()">

View File

@@ -134,7 +134,6 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
defaultProcessDefinitionName: string;
defaultProcessName: string;
defaultProcessSelected: boolean;
activeTab: number = this.tabs.tasks; // tasks|processes|reports
@@ -173,7 +172,6 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
this.defaultProcessName = this.appConfig.get<string>('adf-start-process.name');
this.defaultProcessDefinitionName = this.appConfig.get<string>('adf-start-process.processDefinitionName');
this.defaultProcessSelected = this.appConfig.get<boolean>('adf-start-process.defaultProcessSelected');
// Uncomment this line to replace all 'text' field editors with custom component
// formRenderingService.setComponentTypeResolver('text', () => CustomEditorComponent, true);