Commit a18e831e authored by Marcin Siodelski's avatar Marcin Siodelski Committed by Tomek Mrugalski

[#164] Add custom Chrome launcher

Runs Chrome with --no-sandbox as it is required in CI when running as root.
parent e8dd478d
......@@ -563,7 +563,7 @@ task :ng_test => [NG] do
abort('Aborting tests because Chrome binary was not found.')
end
Dir.chdir('webui') do
sh 'npx ng test --progress false --watch false --browsers=ChromeHeadless'
sh 'npx ng test --progress false --watch false --browsers=ChromeNoSandboxHeadless'
# sh 'npx ng e2e --progress false --watch false'
end
end
......
......@@ -26,6 +26,12 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeNoSandboxHeadless: {
base: 'ChromeHeadless',
flags: ['--no-sandbox'],
},
},
singleRun: false,
restartOnFileChange: true,
})
......
Markdown is supported
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