mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-23 15:49:08 -06:00
37 lines
850 B
JavaScript
37 lines
850 B
JavaScript
// http://nightwatchjs.org/gettingstarted#settings-file
|
|
|
|
const deepmerge = require('deepmerge')
|
|
const userOptions = JSON.parse(process.env.VUE_NIGHTWATCH_USER_OPTIONS || '{}')
|
|
|
|
module.exports = deepmerge({
|
|
src_folders: ['tests/e2e/specs'],
|
|
output_folder: 'tests/e2e/reports',
|
|
custom_assertions_path: ['tests/e2e/custom-assertions'],
|
|
|
|
selenium: {
|
|
start_process: true,
|
|
server_path: require('selenium-server').path,
|
|
host: '127.0.0.1',
|
|
port: 4444,
|
|
cli_args: {
|
|
'webdriver.chrome.driver': require('chromedriver').path
|
|
}
|
|
},
|
|
|
|
test_settings: {
|
|
default: {
|
|
selenium_port: 4444,
|
|
selenium_host: 'localhost',
|
|
silent: true
|
|
},
|
|
|
|
chrome: {
|
|
desiredCapabilities: {
|
|
browserName: 'chrome',
|
|
javascriptEnabled: true,
|
|
acceptSslCerts: true
|
|
}
|
|
}
|
|
}
|
|
}, userOptions)
|