seedling/source/app/nightwatch.js
Roman Jaroš 13ab39d1fd Initial builded version
Change-Id: I8937a5b559134d1d6029d16e9831c961287fee0c
2023-09-09 16:56:30 +02:00

41 lines
908 B
JavaScript

/** @type {import('nightwatch').NightwatchOptions} */
module.exports = {
src_folders: 'tests/.nightwatchjs/src',
output_folder: 'tests/.nightwatchjs/output',
page_objects_path: ['tests/.nightwatchjs/objects'],
custom_commands_path: 'tests/.nightwatchjs/commands',
use_xpath: true,
end_session_on_fail: true,
start_process: false,
test_settings: {
localhost: {
launch_url: '',
selenium_port: 4444,
selenium_host: '10.2.0.4',
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: 'tests/.nightwatchjs/output',
},
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['no-sandbox'],
},
},
},
ci: {
launch_url: '',
selenium_port: 4444,
selenium_host: '10.0.1.21',
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['headless', 'no-sandbox'],
},
},
},
},
};