[NO-ISSUE] Fix e2e test (#4621)

* fix sso, change timeout, parallel

* cange travis

* move name apps in resources file

* resources fix

* resources fix

* add sleep before search group

* add possibility to extend duration of snack-bar message from configuration

* fix unit test

* fix unit test

* remove timeout

* change timeout

* decrease message time

* add lint main branch travis

* reduce timeout

* add new check application presence

* change permission script
fix search selector

* fix travis conf

* check app environment and upload the app if abbsent

* fix cloud test

* remove duplicate

* restore ps test

* restore resources file

* fix e2e test

* process with variables missing

* test new conf travis

* fix lint

* fix spellcheck

* remove duplicate module

* fix ps module

* fix travis conf

* change check activiti env

* add concept of processes in resources
This commit is contained in:
Eugenio Romano
2019-04-18 13:31:42 +02:00
committed by GitHub
parent 181cee72d6
commit 64be9e3624
58 changed files with 627 additions and 391 deletions

View File

@@ -8,6 +8,7 @@
"contextRootBpm": "activiti-app",
"authType" : "BASIC",
"locale" : "en",
"notificationDefaultDuration" : 6000,
"auth": {
"withCredentials": false
},

View File

@@ -82,10 +82,7 @@ export class FormCloudDemoComponent implements OnInit, OnDestroy {
try {
this.parseForm();
} catch (error) {
this.notificationService.openSnackMessage(
'Wrong form configuration',
4000
);
this.notificationService.openSnackMessage('Wrong form configuration');
}
}

View File

@@ -55,9 +55,6 @@ export class StartProcessCloudDemoComponent implements OnInit {
}
openSnackMessage(event: any) {
this.notificationService.openSnackMessage(
event.response.body.message,
4000
);
this.notificationService.openSnackMessage(event.response.body.message);
}
}

View File

@@ -19,6 +19,7 @@ import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { NotificationService } from '@alfresco/adf-core';
import { CloudLayoutService } from './services/cloud-layout.service';
@Component({
templateUrl: './start-task-cloud-demo.component.html',
styleUrls: ['./start-task-cloud-demo.component.scss']
@@ -41,19 +42,16 @@ export class StartTaskCloudDemoComponent implements OnInit {
}
onStartTaskSuccess() {
this.cloudLayoutService.setCurrentTaskFilterParam({key: 'my-tasks'});
this.cloudLayoutService.setCurrentTaskFilterParam({ key: 'my-tasks' });
this.router.navigate([`/cloud/${this.appName}/tasks`]);
}
onCancelStartTask() {
this.cloudLayoutService.setCurrentTaskFilterParam({key: 'my-tasks'});
this.cloudLayoutService.setCurrentTaskFilterParam({ key: 'my-tasks' });
this.router.navigate([`/cloud/${this.appName}/tasks`]);
}
openSnackMessage(event: any) {
this.notificationService.openSnackMessage(
event.response.body.message,
4000
);
this.notificationService.openSnackMessage(event.response.body.message);
}
}

View File

@@ -16,7 +16,12 @@
*/
import { Component } from '@angular/core';
import { AppConfigService, NotificationService, UserPreferencesService, UserPreferenceValues } from '@alfresco/adf-core';
import {
AppConfigService,
NotificationService,
UserPreferencesService,
UserPreferenceValues
} from '@alfresco/adf-core';
@Component({
selector: 'app-config-editor',
@@ -60,16 +65,10 @@ export class ConfigEditorComponent {
}
} catch (error) {
this.invalidJson = true;
this.notificationService.openSnackMessage(
'Wrong Code configuration ' + error,
1000
);
this.notificationService.openSnackMessage('Wrong Code configuration ' + error);
} finally {
if (!this.invalidJson) {
this.notificationService.openSnackMessage(
'Saved',
1000
);
this.notificationService.openSnackMessage('Saved');
}
}
}
@@ -89,7 +88,7 @@ export class ConfigEditorComponent {
this.isUserPreference = true;
this.userPreferenceProperty = 'textOrientation';
this.userPreferencesService.select( this.userPreferenceProperty).subscribe((textOrientation: number) => {
this.userPreferencesService.select(this.userPreferenceProperty).subscribe((textOrientation: number) => {
this.code = JSON.stringify(textOrientation);
this.field = 'textOrientation';
this.indentCode();
@@ -147,7 +146,7 @@ export class ConfigEditorComponent {
this.indentCode();
}
editTaskFilterConfClick() {
editTaskFilterConfClick() {
this.isUserPreference = false;
this.code = JSON.stringify(this.appConfig.config['adf-edit-task-filter']);
this.field = 'adf-edit-task-filter';

View File

@@ -349,10 +349,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
}
openSnackMessage(event: any) {
this.notificationService.openSnackMessage(
event,
4000
);
this.notificationService.openSnackMessage(event);
}
emitReadyEvent(event: NodePaging) {
@@ -579,10 +576,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
});
dialogInstance.componentInstance.error.subscribe((message) => {
this.notificationService.openSnackMessage(
message,
6000
);
this.notificationService.openSnackMessage(message);
});
}

View File

@@ -26,7 +26,7 @@ import { Subscription } from 'rxjs';
templateUrl: 'form.component.html',
styleUrls: ['form.component.scss'],
providers: [
{provide: FormService, useClass: InMemoryFormService}
{ provide: FormService, useClass: InMemoryFormService }
],
encapsulation: ViewEncapsulation.None
})
@@ -87,10 +87,7 @@ export class FormComponent implements OnInit, OnDestroy {
try {
this.parseForm();
} catch (error) {
this.notificationService.openSnackMessage(
'Wrong form configuration',
4000
);
this.notificationService.openSnackMessage('Wrong form configuration');
}
}

View File

@@ -70,10 +70,7 @@ export class DemoPermissionComponent implements OnInit {
showErrorMessage(error) {
const message = error.message ? error.message : error;
this.notificationService.openSnackMessage(
message,
4000
);
this.notificationService.openSnackMessage(message);
}
}