forked from quran/quran.com-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.json
78 lines (78 loc) · 2.38 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
68
69
70
71
72
73
74
75
76
77
78
{
"src_folders": ["tests/functional/specs"],
"output_folder": "tests/functional/output",
"custom_commands_path": "tests/functional/commands",
"custom_assertions_path": "tests/functional/assertions",
"page_objects_path": "tests/functional/pages",
"globals_path": "tests/functional/globals.js",
"selenium" : {
"start_process" : true,
"server_path" : "node_modules/selenium-server/lib/runner/selenium-server-standalone-2.52.0.jar",
"log_path" : "",
"host" : "127.0.0.1",
"port" : 5555,
"cli_args" : {
"webdriver.chrome.driver" : "node_modules/chromedriver/lib/chromedriver/chromedriver"
}
},
"test_settings" : {
"default" : {
"exclude": ["./pages", "./commands"],
"filter": "*.spec.js",
"launch_url" : "http://localhost",
"selenium_port" : 5555,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : true,
"path" : "tests/functional/screenshots"
},
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true
}
},
"production" : {
"exclude": ["./pages", "./commands"],
"filter": "*.spec.js",
"launch_url" : "http://localhost",
"selenium_port" : 5555,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : true,
"path" : "tests/functional/screenshots"
},
"desiredCapabilities": {
"browserName" : "phantomjs",
"javascriptEnabled" : true,
"acceptSslCerts" : true,
"phantomjs.binary.path" : "/usr/local/phantomjs/bin/phantomjs"
}
},
"mobile": {
"exclude": ["./pages", "./commands"],
"filter": "**/*.spec.js",
"launch_url" : "http://localhost",
"selenium_port" : 5555,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : true,
"path" : "tests/functional/screenshots"
},
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions": {
"args": [
"--user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_2 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A4449d Safari/9537.53",
"--window-size=320,568"
]
}
}
}
}
}