-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
57 lines (55 loc) · 1.37 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
const fs = require("fs");
const path = require("path");
const chromedriver = require("chromedriver");
const geckodriver = require("geckodriver");
const srcDir = path.resolve(__dirname, "web/e2e");
const logPath = path.resolve(__dirname, "tmp/e2e/logs");
if (!fs.existsSync(logPath)) {
fs.mkdirSync(logPath, { recursive: true });
}
module.exports = {
src_folders: [`${srcDir}/specs`],
output_folder: `tmp/e2e/reports`,
page_objects_path: `${srcDir}/page-objects`,
custom_assertions_path: `${srcDir}/custom-assertions`,
custom_commands_path: `${srcDir}/custom-commands`,
test_workers: false,
test_settings: {
default: {
launch_url: process.env.URL || "http://0.0.0.0:3000"
},
chrome: {
desiredCapabilities: {
browserName: "chrome",
chromeOptions: {
w3c: false,
args: ["headless"]
}
},
webdriver: {
log_path: logPath,
port: 9515,
server_path: chromedriver.path
}
},
firefox: {
desiredCapabilities: {
browserName: "firefox",
alwaysMatch: {
acceptInsecureCerts: true,
"moz:firefoxOptions": {
args: ["--headless"]
}
}
},
webdriver: {
log_path: logPath,
port: 4444,
server_path: geckodriver.path
}
}
},
webdriver: {
start_process: true
}
};