Update e2e Tests to allow ADW builds to run on them as well (#1242)

* make ECM host flexible
This commit is contained in:
Martin Muller
2019-11-05 15:50:10 +01:00
committed by GitHub
parent 4cb79f5e58
commit 349a9df044
4 changed files with 12 additions and 7 deletions

View File

@@ -13,6 +13,8 @@ const downloadFolder = `${projectRoot}/e2e-downloads`;
const width = 1366;
const height = 768;
const REPO_API_HOST = process.env.REPO_API_HOST || 'http://localhost:8080';
function rmDir(dirPath) {
try {
var files = fs.readdirSync(dirPath);
@@ -28,10 +30,17 @@ function rmDir(dirPath) {
fs.rmdirSync(dirPath);
}
const appConfig = {
ecmHost: REPO_API_HOST,
providers: 'ECM',
authType: 'BASIC'
};
exports.config = {
allScriptsTimeout: 50000,
params: {
config: appConfig,
downloadFolder: downloadFolder
},