2019-12-11 09:22:11 +00:00
|
|
|
require('@babel/register')
|
2022-07-31 09:35:48 +00:00
|
|
|
const config = require('../../config')
|
2016-10-26 14:46:32 +00:00
|
|
|
|
|
|
|
// http://nightwatchjs.org/guide#settings-file
|
|
|
|
module.exports = {
|
2022-07-31 09:35:48 +00:00
|
|
|
src_folders: ['test/e2e/specs'],
|
|
|
|
output_folder: 'test/e2e/reports',
|
|
|
|
custom_assertions_path: ['test/e2e/custom-assertions'],
|
2016-10-26 14:46:32 +00:00
|
|
|
|
2022-07-31 09:35:48 +00:00
|
|
|
selenium: {
|
|
|
|
start_process: true,
|
2023-03-30 21:30:03 +00:00
|
|
|
server_path: require('selenium-server').path,
|
2022-07-31 09:35:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 4444,
|
|
|
|
cli_args: {
|
2019-07-05 07:02:14 +00:00
|
|
|
'webdriver.chrome.driver': require('chromedriver').path
|
2016-10-26 14:46:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-07-31 09:35:48 +00:00
|
|
|
test_settings: {
|
|
|
|
default: {
|
|
|
|
selenium_port: 4444,
|
|
|
|
selenium_host: 'localhost',
|
|
|
|
silent: true,
|
|
|
|
globals: {
|
|
|
|
devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
|
2016-10-26 14:46:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-07-31 09:35:48 +00:00
|
|
|
chrome: {
|
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: 'chrome',
|
|
|
|
javascriptEnabled: true,
|
|
|
|
acceptSslCerts: true
|
2016-10-26 14:46:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-07-31 09:35:48 +00:00
|
|
|
firefox: {
|
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: 'firefox',
|
|
|
|
javascriptEnabled: true,
|
|
|
|
acceptSslCerts: true
|
2016-10-26 14:46:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|