Commit 896290e9 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

disabled sandboxing for headless chrome when performing unit tests via docker

parent a4ab8e4c
Pipeline #10749 failed with stage
in 4 minutes and 32 seconds
{ {
"name": "mc_frontend", "name": "mc_frontend",
"version": "1.6.1", "version": "1.6.2",
"author": "Ionic Framework", "author": "Ionic Framework",
"homepage": "https://ionicframework.com/", "homepage": "https://ionicframework.com/",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --port 8100", "start": "ng serve --port 8100",
"build": "ng build", "build": "ng build",
"test": "ng test --code-coverage --watch=false --browsers=ChromeHeadless", "test": "ng test --code-coverage --watch=false",
"test-debug": "ng test --watch=true --browsers=Chrome", "test-debug": "ng test --watch=true --browsers=Chrome",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
......
...@@ -28,15 +28,20 @@ module.exports = function (config) { ...@@ -28,15 +28,20 @@ module.exports = function (config) {
colors: true, colors: true,
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome', 'ChromeHeadless'], browsers: ['ChromeHeadlessNoSandbox'],
browserDisconnectTimeout: 10000, // browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 3, // browserDisconnectTolerance: 3,
browserNoActivityTimeout: 60000, // browserNoActivityTimeout: 60000,
flags: [ customLaunchers: {
'--disable-web-security', ChromeHeadlessNoSandbox: {
'--disable-gpu', base: 'ChromeHeadless',
'--no-sandbox', flags: [
], '--no-sandbox',
'--disable-gpu',
'--disable-web-security'
]
}
},
singleRun: false singleRun: false
}); });
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment