headless profile

This commit is contained in:
Daniel Sami
2019-04-04 11:25:08 -04:00
parent e3f10ebd65
commit ac11b3782b
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: {