-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnightwatch-ci.js
52 lines (44 loc) · 1.26 KB
/
nightwatch-ci.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/* globals module, process, require */
require('@babel/register');
const environments = require('./selenium-environments');
const JOB_IDENTIFIER = process.env.BUILDKITE_JOB_ID;
const BINPATH = './node_modules/nightwatch/bin/';
const settings = {
src_folders: ['src/test/browser/index.js'],
output_folder: 'reports',
custom_commands_path: '',
custom_assertions_path: '',
page_objects_path: '',
globals_path: '',
selenium: {
start_process: false,
server_path: BINPATH + 'selenium.jar',
log_path: '',
port: 4444,
cli_args: {
'webdriver.chrome.driver': BINPATH + 'chromedriver',
},
},
test_settings: {
default: {
launch_url: 'http://ondemand.saucelabs.com:80',
selenium_port: 80,
selenium_host: 'ondemand.saucelabs.com',
silent: true,
username: process.env.SAUCE_USERNAME,
access_key: process.env.SAUCE_ACCESS_KEY,
desiredCapabilities: {
'tunnel-identifier': JOB_IDENTIFIER,
},
},
},
};
settings.test_settings = {...settings.test_settings, ...environments};
module.exports = settings;