mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Use the e2e lite-serve (#1390)
* Enable liteserve Fix ecmHost Enable browser open * Be able to pass a different admin credentials * use the e2e liteserve * sync package-lock * Update webdriver * Replace the app.conf values before running e2e. Be able to run e2e on external env * Remove dist mystake * Remove the baseUrl from the contains * Use the docker image * stop postgresql before install * Try the new strategy * regenerate the package lock * Wait for the content to go up * Change travis with start.sh * do not override the baseUrl * Create a different docker compose for e2e Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
This commit is contained in:
@@ -9,11 +9,13 @@ const fs = require('fs');
|
||||
|
||||
const projectRoot = path.resolve(__dirname);
|
||||
const downloadFolder = `${projectRoot}/e2e-downloads`;
|
||||
|
||||
const E2E_HOST = process.env.E2E_HOST || 'http://localhost',
|
||||
E2E_PORT = process.env.E2E_PORT || 4200,
|
||||
BROWSER_RUN = process.env.BROWSER_RUN;
|
||||
const width = 1366;
|
||||
const height = 768;
|
||||
|
||||
const REPO_API_HOST = process.env.REPO_API_HOST || 'http://localhost:8080';
|
||||
const API_HOST = process.env.API_HOST || 'http://localhost:8080';
|
||||
|
||||
function rmDir(dirPath) {
|
||||
try {
|
||||
@@ -31,7 +33,7 @@ function rmDir(dirPath) {
|
||||
}
|
||||
|
||||
const appConfig = {
|
||||
ecmHost: REPO_API_HOST,
|
||||
hostEcm: API_HOST,
|
||||
providers: 'ECM',
|
||||
authType: 'BASIC'
|
||||
};
|
||||
@@ -41,7 +43,9 @@ exports.config = {
|
||||
|
||||
params: {
|
||||
config: appConfig,
|
||||
downloadFolder: downloadFolder
|
||||
downloadFolder: downloadFolder,
|
||||
ADMIN_USERNAME: process.env.ADMIN_EMAIL || 'admin',
|
||||
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD || 'admin'
|
||||
},
|
||||
|
||||
specs: [
|
||||
@@ -112,7 +116,8 @@ exports.config = {
|
||||
},
|
||||
args: [
|
||||
'--incognito',
|
||||
'--headless',
|
||||
...(BROWSER_RUN === 'true' ? [] : ['--headless']),
|
||||
'--disable-web-security',
|
||||
'--remote-debugging-port=9222',
|
||||
'--disable-gpu',
|
||||
'--no-sandbox'
|
||||
@@ -122,7 +127,8 @@ exports.config = {
|
||||
|
||||
directConnect: true,
|
||||
|
||||
// baseUrl: 'http://localhost:8080',
|
||||
baseUrl: `${E2E_HOST}${E2E_PORT ? `:${E2E_PORT}` : ''}`,
|
||||
|
||||
getPageTimeout: 50000,
|
||||
|
||||
framework: 'jasmine',
|
||||
|
Reference in New Issue
Block a user