-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnightwatch.conf.js
More file actions
33 lines (29 loc) · 1.22 KB
/
nightwatch.conf.js
File metadata and controls
33 lines (29 loc) · 1.22 KB
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
const {execSync} = require("child_process");
// Resolve chromedriver and chrome from env vars (set by CI) or PATH
const chromedriverPath = process.env.CHROMEDRIVER_PATH || execSync("which chromedriver", {encoding: "utf8"}).trim();
const chromePath = process.env.CHROME_PATH || execSync("which google-chrome-stable || which google-chrome || which chromium", {encoding: "utf8"}).trim();
module.exports = {
src_folders: ["integration/nightwatch/tests/"],
output_folder: "./bin/nightwatch",
custom_assertions_path: "",
page_objects_path: "./integration/nightwatch/pageObjects",
globals_path: "./integration/nightwatch/globalsModule.js",
webdriver: {
start_process: true,
server_path: chromedriverPath,
port: 9515,
},
test_settings: {
default: {
launch_url: "https://localhost:4500",
desiredCapabilities: {
browserName: "chrome",
acceptInsecureCerts: true,
"goog:chromeOptions": {
binary: chromePath,
args: ["--no-sandbox", "--window-size=1920,1080", "--headless", "--disable-dev-shm-usage", "--ignore-certificate-errors"],
},
},
},
},
};