-
Notifications
You must be signed in to change notification settings - Fork 25
/
nightwatch.conf.js
34 lines (33 loc) · 1.01 KB
/
nightwatch.conf.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
const BINPATH = './node_modules/nightwatch/bin/';
module.exports = {
src_folders: [
'test/e2e', // Where you are storing your Nightwatch e2e/UAT tests
],
output_folder: './reports', // reports (test outcome) output by nightwatch
selenium: { // downloaded by selenium-download module (see readme)
start_process: true, // tells nightwatch to start/stop the selenium process
server_path: `${BINPATH}selenium.jar`,
log_path: '',
host: '127.0.0.1',
port: 4444, // standard selenium port
},
test_settings: {
default: {
screenshots: {
enabled: false,
path: './screenshots',
},
globals: {
waitForConditionTimeout: 5000, // sometimes internet is slow so wait.
},
launch_url: 'http://localhost:4000',
desiredCapabilities: {
browserName: 'phantomjs',
javascriptEnabled: true,
acceptSslCerts: true,
'phantomjs.binary.path': './node_modules/.bin/phantomjs',
'phantomjs.cli.args': [],
},
},
},
};