mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Merge pull request #3619 from ansible/headless
headless option added Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
"jshint": "grunt jshint:source --no-color",
|
"jshint": "grunt jshint:source --no-color",
|
||||||
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=chromeHeadless",
|
"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",
|
"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",
|
"unit": "karma start test/unit/karma.unit.js",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"dev": "webpack --config build/webpack.development.js --progress",
|
"dev": "webpack --config build/webpack.development.js --progress",
|
||||||
|
|||||||
@@ -50,6 +50,20 @@ module.exports = {
|
|||||||
path: AWX_E2E_SCREENSHOTS_PATH,
|
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
|
// Note: These are environment-specific overrides to the default
|
||||||
// test settings defined above.
|
// test settings defined above.
|
||||||
cluster: {
|
cluster: {
|
||||||
|
|||||||
Reference in New Issue
Block a user