-
Notifications
You must be signed in to change notification settings - Fork 2
/
nightwatch.conf.js
55 lines (51 loc) · 1.16 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// nightwatch.conf.js
const chromedriver = require('chromedriver')
const geckodriver = require('geckodriver')
module.exports = {
src_folders: ['tests/e2e/specs'],
output_folder: 'tests/e2e/reports',
page_objects_path: 'tests/e2e/page-objects',
custom_assertions_path: 'tests/e2e/custom-assertions',
custom_commands_path: 'tests/e2e/custom-commands',
webdriver: {
start_process: true,
port: 9515,
server_path: chromedriver.path
},
test_workers: false,
test_settings: {
default: {
detailed_output: true,
launch_url: 'http://localhost:3000'
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
w3c: false,
args: [
'no-sandbox',
// 'headless'
]
}
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
alwaysMatch: {
acceptInsecureCerts: true,
'moz:firefoxOptions': {
args: [
// '--headless'
]
}
}
},
webdriver: {
server_path: geckodriver.path,
port: 4444
}
}
}
};