forked from thematters/matters-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
52 lines (48 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const base = {
launch: 'http://localhost:3000',
}
const baseDriver = {
start_process: true,
}
module.exports = {
src_folders: ['bdd/steps'],
test_settings: {
// chrome
default: {
...base,
webdriver: {
...baseDriver,
server_path: 'node_modules/.bin/chromedriver',
port: 9000,
cli_args: ['--port=9000'],
},
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['headless', 'no-sandbox'],
},
},
},
// firefox
firefox: {
...base,
webdriver: {
...baseDriver,
server_path: 'node_modules/.bin/geckodriver',
port: 9001,
cli_args: ['--port=9001'],
},
desiredCapabilities: {
browserName: 'firefox',
elementScrollBehavior: 1,
javascriptEnabled: true,
acceptSslCerts: true,
alwaysMatch: {
'moz:firefoxOptions': {
args: ['--headless'],
},
},
},
},
},
}