-
Notifications
You must be signed in to change notification settings - Fork 1
/
nightwatch.conf.js
84 lines (72 loc) · 1.99 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//require('babel-core/register')
const chromedriver = require('chromedriver')
require('geckodriver')
const testURL = 'http://localhost:5000';
const defaultTimeout = 15000;
module.exports = {
src_folders: ['tests'],
page_objects_path: './pages',
globals_path: './hooks/globals.js',
webdriver: {
start_process: true,
},
test_workers: {
enabled: true,
workers: 4
},
// screenshots: {
// enabled: true,
// on_failure: true,
// on_error: true,
// path: "tests_output/"
// },
test_settings: {
default: {
launch_url: testURL,
globals: {
waitForConditionTimeout: defaultTimeout
},
webdriver: {
server_path: chromedriver.path,
port: 9515
},
desiredCapabilities: {
browserName: "Chrome"
}
},
headless: {
launch_url: testURL,
globals: {
waitForConditionTimeout: defaultTimeout // As vezes a conexão com a internet/rede fica lenta
},
webdriver: {
server_path: chromedriver.path,
port: 9515
},
desiredCapabilities: {
browserName: "chrome",
chromeOptions: {
w3c: false,
args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage']
}
}
},
firefox: {
launch_url: testURL,
globals: {
waitForConditionTimeout: defaultTimeout
},
webdriver: {
server_path: './node_modules/.bin/geckodriver',
port: 4444
},
desiredCapabilities: {
browserName: "firefox",
acceptInsecureCerts: true
}
},
stage: {
launch_url: "http://somestage.com.br",
}
}
}