[ACA-3392] Create aca-testing-shared project to be reused in ADW (#1480)

* Move e2e framework to aca-shared/testing

* * Update e2e suites imports from @alfresco/aca-shared/testing
* Remove testing framework from 'e2e' directory

* Move e2e testing framework to `aca-testing-shared` project
This commit is contained in:
Roxana Diacenco
2020-06-04 23:40:07 +03:00
committed by GitHub
parent 33327bb505
commit 6e17405787
166 changed files with 2745 additions and 1128 deletions

View File

@@ -9,6 +9,7 @@ const fs = require('fs');
const projectRoot = path.resolve(__dirname);
const downloadFolder = `${projectRoot}/e2e-downloads`;
const e2eFolder = path.resolve(projectRoot, 'e2e');
const E2E_HOST = process.env.E2E_HOST || 'http://localhost';
const E2E_PORT = process.env.E2E_PORT || 4200;
const BROWSER_RUN = process.env.BROWSER_RUN;
@@ -46,7 +47,8 @@ exports.config = {
config: appConfig,
downloadFolder: downloadFolder,
ADMIN_USERNAME: process.env.ADMIN_EMAIL || 'admin',
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD || 'admin'
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD || 'admin',
e2eRootPath: e2eFolder
},
specs: [
@@ -154,8 +156,20 @@ exports.config = {
],
onPrepare() {
const tsConfigPath = path.resolve(e2eFolder, 'tsconfig.e2e.json');
const tsConfig = require(tsConfigPath);
require('ts-node').register({
project: `${projectRoot}/e2e/tsconfig.e2e.json`
project: tsConfigPath,
compilerOptions: {
paths: tsConfig.compilerOptions.paths
}
});
require('tsconfig-paths').register({
project: tsConfigPath,
baseUrl: e2eFolder,
paths: tsConfig.compilerOptions.paths
});
browser