-
Notifications
You must be signed in to change notification settings - Fork 47
/
nightwatch.json
67 lines (66 loc) · 1.79 KB
/
nightwatch.json
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
{
"src_folders" : ["test/e2e/tests"],
"output_folder" : "./reports",
"custom_commands_path" : "test/e2e/commands",
"custom_assertions_path" : "",
"page_objects_path" : "test/e2e/pages",
"globals_path" : "test/e2e/globals.js",
"test_settings" : {
"default": {
"launch_url" : "https://localhost:8080/",
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"skip_testcases_on_fail": false,
"end_session_on_fail": false,
"resolution": "1920x1080",
"exclude": "utils.js",
"screenshots" : {
"enabled" : true,
"on_failure" : true,
"path" : "./reports/screenshots"
}
},
"chrome" : {
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions" : {
"args" : ["window-position=0,0", "window-size=1920,1080", "--disable-popup-blocking"]
}
}
},
"firefox" : {
"desiredCapabilities": {
"browserName": "firefox",
"unexpectedAlertBehaviour": "dismiss",
"javascriptEnabled": true,
"acceptSslCerts": true,
"elementScrollBehavior": "1"
}
},
"360x640" : {
"resolution": "360x640",
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions" : {
"args" : ["window-position=0,0", "window-size=360,640"]
}
}
},
"768x1024" : {
"resolution": "768x1024",
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions" : {
"args" : ["window-position=0,0", "window-size=768,1024"]
}
}
}
}
}