Merge pull request #3619 from ansible/headless

headless option added

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-04-04 18:46:32 +00:00 committed by GitHub
commit 6b422d3bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,7 @@
"jshint": "grunt jshint:source --no-color",
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=chromeHeadless",
"e2e": "./test/e2e/runner.js --config ./test/e2e/nightwatch.conf.js --suiteRetries=2",
"headless-e2e": "./test/e2e/runner.js --config ./test/e2e/nightwatch.conf.js --env headless --suiteRetries=2",
"unit": "karma start test/unit/karma.unit.js",
"lint": "eslint .",
"dev": "webpack --config build/webpack.development.js --progress",

View File

@ -50,6 +50,20 @@ module.exports = {
path: AWX_E2E_SCREENSHOTS_PATH,
}
},
headless: {
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'headless',
'disable-web-security',
'ignore-certificate-errors',
'no-sandbox',
'disable-gpu'
]
}
},
},
// Note: These are environment-specific overrides to the default
// test settings defined above.
cluster: {