mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
headless chrome for unit tests (#169)
This commit is contained in:
parent
60cba5b93b
commit
887d8b811c
@ -12,16 +12,12 @@ cache:
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
|
||||
install:
|
||||
- npm install
|
||||
|
||||
script:
|
||||
- npm run build
|
||||
- npm run test -- --single-run --no-progress --browser=ChromeNoSandbox
|
||||
- npm run test -- --single-run --no-progress
|
||||
|
||||
# Send coverage data to codecov
|
||||
after_success:
|
||||
|
@ -38,11 +38,16 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
customLaunchers: {
|
||||
ChromeNoSandbox: {
|
||||
ChromeHeadless: {
|
||||
base: 'Chrome',
|
||||
flags: ['--no-sandbox']
|
||||
flags: [
|
||||
'--no-sandbox',
|
||||
'--headless',
|
||||
'--disable-gpu',
|
||||
'--remote-debugging-port=9222'
|
||||
]
|
||||
}
|
||||
},
|
||||
singleRun: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user