This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
98 lines (91 loc) · 2.19 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const fs = require('fs');
const server_folder = 'node_modules/selenium-standalone/.selenium/selenium-server/';
const server_path = server_folder
.concat(fs.readdirSync(server_folder)
.find(file => file.indexOf('.jar') !== -1)
);
module.exports = {
"src_folders" : ["test/e2e"],
"output_folder" : "reports",
"custom_commands_path" : [
"test/e2e/commands",
],
"custom_assertions_path" : [
"test/e2e/assertions",
],
"page_objects_path" : "",
"globals_path" : "test/e2e/globals.js",
"selenium" : {
"start_process" : true,
server_path,
"log_path" : "",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : "",
"webdriver.gecko.driver" : "./node_modules/.bin/geckodriver",
"webdriver.edge.driver" : "",
},
},
"test_settings" : {
"default" : {
"launch_url" : process.env.SITE_URL || "http://localhost:8080",
"exclude": [
"test/e2e/commands",
"test/e2e/assertions",
"test/e2e/globals.js",
],
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : true,
"path" : "reports/errorshots",
},
"globals": {
"visual_regression": {
"baselinePath": "test/e2e/baseline",
"resultPath": "reports/visual-regression",
},
},
},
"firefox": {
"windowSize": {
"width": 1024,
"height": 627,
},
"desiredCapabilities": {
"browserName": "firefox",
"marionette": true,
"moz:firefoxOptions": {
"args": [
"-headless",
],
},
},
},
"chrome" : {
"windowSize": {
"width": 1024,
"height": 700,
},
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"args" : [
"--no-sandbox",
"force-device-scale-factor=1",
"user-dir=/tmp/foo",
"disable-infobars",
"hide-scrollbars",
"headless",
],
},
},
},
"edge" : {
"desiredCapabilities": {
"browserName": "MicrosoftEdge",
},
},
},
};