procyon/nightwatch.conf.js
2021-08-03 09:04:52 +02:00

33 lines
570 B
JavaScript

const config = require('./config/config.json');
const setting = {
selenium_port: 4444,
selenium_host: '192.168.0.20',
desiredCapabilities: {
chromeOptions: {
args: ['headless', 'no-sandbox'],
},
},
};
module.exports = {
src_folders: 'e2e/',
output_folder: false,
selenium: {
start_process: false,
},
test_settings: {
localhost: Object.assign(
{
launch_url: 'http://192.168.0.120:' + config.LOCALHOST_PORT,
},
setting
),
ci: Object.assign(
{
launch_url: 'http://192.168.0.20:' + config.E2E_PORT,
},
setting
),
},
};