-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.config.js
74 lines (73 loc) · 1.89 KB
/
nightwatch.config.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
const SELENIUM_HOST = "localhost";
const SELENIUM_PORT = 4444;
module.exports = {
src_folders: ["test/e2e/specs"],
output_folder: "test/e2e/reports",
page_objects_path: ["test/e2e/page-objects"],
live_output: false,
selenium: {
start_process: true,
server_path: require("selenium-server-standalone-jar").path,
host: SELENIUM_HOST,
port: SELENIUM_PORT,
cli_args: {
"webdriver.chrome.driver": require("chromedriver").path,
"webdriver.gecko.driver": require("geckodriver").path,
},
},
test_settings: {
default: {
desiredCapabilities: {
browserName: "chrome",
},
launch_url: "http://localhost:3001",
selenium_host: SELENIUM_HOST,
selenium_port: SELENIUM_PORT,
silent: true,
screenshots: {
enabled: false,
on_failure: true,
on_error: false,
path: "test/e2e/screenshots",
},
},
chrome: {
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
w3c: false, /** @see https://github.com/nightwatchjs/nightwatch/releases/tag/v1.1.12 */
},
},
},
firefox: {
desiredCapabilities: {
browserName: "firefox",
javascriptEnabled: true,
acceptSslCerts: true,
},
},
"chrome-headless": {
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
w3c: false, /** @see https://github.com/nightwatchjs/nightwatch/releases/tag/v1.1.12 */
args: ["--headless"],
},
},
},
"firefox-headless": {
desiredCapabilities: {
browserName: "firefox",
javascriptEnabled: true,
acceptSslCerts: true,
"moz:firefoxOptions": {
args: ["--headless"],
},
},
},
},
};