mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Remove ora not used dependency (#2179)
* remove ora * fix argv * fix lock
This commit is contained in:
21917
package-lock.json
generated
21917
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -95,7 +95,6 @@
|
|||||||
"lite-server": "^2.4.0",
|
"lite-server": "^2.4.0",
|
||||||
"ng-packagr": "^10.1.2",
|
"ng-packagr": "^10.1.2",
|
||||||
"node-stream-zip": "^1.13.5",
|
"node-stream-zip": "^1.13.5",
|
||||||
"ora": "^5.4.0",
|
|
||||||
"prettier": "^2.1.2",
|
"prettier": "^2.1.2",
|
||||||
"protractor": "^7.0.0",
|
"protractor": "^7.0.0",
|
||||||
"protractor-retry-angular-cli": "^2.0.2",
|
"protractor-retry-angular-cli": "^2.0.2",
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
// Protractor configuration file, see link for more information
|
// Protractor configuration file, see link for more information
|
||||||
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
||||||
|
|
||||||
require('dotenv').config({ path: process.env.ENV_FILE });
|
require('dotenv').config({path: process.env.ENV_FILE});
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { SpecReporter } = require('jasmine-spec-reporter');
|
const {SpecReporter} = require('jasmine-spec-reporter');
|
||||||
const retry = require('protractor-retry-angular-cli').retry;
|
const retry = require('protractor-retry-angular-cli').retry;
|
||||||
const { uploadOutput } = require('./e2e/e2e-config/utils/upload-output');
|
const {uploadOutput} = require('./e2e/e2e-config/utils/upload-output');
|
||||||
const smartRunnerFactory = require('./e2e/smartrunner-factory');
|
const smartRunnerFactory = require('./e2e/smartrunner-factory');
|
||||||
|
|
||||||
const projectRoot = path.resolve(__dirname);
|
const projectRoot = path.resolve(__dirname);
|
||||||
@@ -20,9 +20,10 @@ const height = 768;
|
|||||||
const SAVE_SCREENSHOT = process.env.SAVE_SCREENSHOT === 'true';
|
const SAVE_SCREENSHOT = process.env.SAVE_SCREENSHOT === 'true';
|
||||||
const APP_CONFIG_ECM_HOST = process.env.APP_CONFIG_ECM_HOST || 'http://localhost:8080';
|
const APP_CONFIG_ECM_HOST = process.env.APP_CONFIG_ECM_HOST || 'http://localhost:8080';
|
||||||
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
|
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
|
||||||
const MAX_RETRIES = process.env.MAX_RETRIES || 1;
|
|
||||||
const E2E_LOG_LEVEL = process.env.E2E_LOG_LEVEL || 'ERROR';
|
const E2E_LOG_LEVEL = process.env.E2E_LOG_LEVEL || 'ERROR';
|
||||||
|
|
||||||
|
let retryCount = 0;
|
||||||
|
|
||||||
const appConfig = {
|
const appConfig = {
|
||||||
hostEcm: APP_CONFIG_ECM_HOST,
|
hostEcm: APP_CONFIG_ECM_HOST,
|
||||||
providers: 'ECM',
|
providers: 'ECM',
|
||||||
@@ -137,7 +138,8 @@ exports.config = {
|
|||||||
showColors: true,
|
showColors: true,
|
||||||
defaultTimeoutInterval: 200000,
|
defaultTimeoutInterval: 200000,
|
||||||
includeStackTrace: true,
|
includeStackTrace: true,
|
||||||
print: function () {},
|
print: function () {
|
||||||
|
},
|
||||||
...(process.env.CI ? smartRunnerFactory.applyExclusionFilter() : {})
|
...(process.env.CI ? smartRunnerFactory.applyExclusionFilter() : {})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -204,10 +206,8 @@ exports.config = {
|
|||||||
afterLaunch: async function (statusCode) {
|
afterLaunch: async function (statusCode) {
|
||||||
if (SAVE_SCREENSHOT && statusCode !== 0) {
|
if (SAVE_SCREENSHOT && statusCode !== 0) {
|
||||||
console.log(`Status code is ${statusCode}, trying to save screenshots.`);
|
console.log(`Status code is ${statusCode}, trying to save screenshots.`);
|
||||||
let retryCount = 1;
|
|
||||||
if (argv.retry) {
|
retryCount++;
|
||||||
retryCount = ++argv.retry;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await uploadOutput(retryCount);
|
await uploadOutput(retryCount);
|
||||||
|
Reference in New Issue
Block a user