[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:
gmandakini
2019-03-15 23:11:58 +00:00
committed by Eugenio Romano
parent f891ea3df5
commit fc2132e248
48 changed files with 3400 additions and 3950 deletions
+10 -9
View File
@@ -17,21 +17,20 @@
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
import TestConfig = require('../../test.config');
import { AlfrescoApiConfig } from '@alfresco/js-api/src/alfrescoApiConfig';
export class ApiService {
HOST_SSO = TestConfig.adf.hostSso;
HOST_BPM = TestConfig.adf.hostBPM;
HOST_IDENTITY = TestConfig.adf.hostIdentity;
HOST_SSO: string = TestConfig.adf.hostSso;
HOST_BPM: string = TestConfig.adf.hostBPM;
HOST_IDENTITY: string = TestConfig.adf.hostIdentity;
apiService = new AlfrescoApi({
config: AlfrescoApiConfig = {
provider: 'BPM',
bpmHost: `${this.HOST_BPM}`,
identityHost: `${this.HOST_IDENTITY}`,
hostBpm: this.HOST_BPM,
authType: 'OAUTH',
oauth2: {
host: `${this.HOST_SSO}`,
authType: '/protocol/openid-connect/token',
host: this.HOST_SSO,
clientId: 'activiti',
scope: 'openid',
secret: '',
@@ -41,7 +40,9 @@ export class ApiService {
redirectUriLogout: '/logout'
}
});
};
apiService: any = new AlfrescoApi(this.config);
async login(username, password) {
await this.apiService.login(username, password);
-4
View File
@@ -17,15 +17,11 @@
import { ApiService } from '../APS-cloud/apiservice';
import { Util } from '../../util/util';
import { AppConfigService } from '@alfresco/adf-core';
export class GroupIdentity {
api: ApiService = new ApiService();
constructor(appConfig: AppConfigService) {
}
async init(username, password) {
await this.api.login(username, password);
}
-4
View File
@@ -17,15 +17,11 @@
import { ApiService } from '../APS-cloud/apiservice';
import { Util } from '../../util/util';
import { AppConfigService } from '@alfresco/adf-core';
export class Identity {
api: ApiService = new ApiService();
constructor(appConfig: AppConfigService) {
}
async init(username, password) {
await this.api.login(username, password);
}
-4
View File
@@ -16,15 +16,11 @@
*/
import { ApiService } from '../APS-cloud/apiservice';
import { AppConfigService } from '@alfresco/adf-core';
export class Roles {
api: ApiService = new ApiService();
constructor(appConfig: AppConfigService) {
}
async init(username, password) {
await this.api.login(username, password);
}
+1 -1
View File
@@ -49,7 +49,7 @@ let JS_BIND_INPUT = function (target) {
};
let JS_BIND_INPUT_FOLDER = function (target) {
let input = document.createElement('input');
let input: any = document.createElement('input');
input.type = 'file';
input.style.display = 'none';
input.multiple = true;