forked from Pickra/copy-code-block
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
46 lines (41 loc) · 1.16 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
const chromeDriver = require("chromedriver");
const seleniumServer = require("selenium-server");
const config = {
src_folders: "./tests",
output_folder: "./reports",
custom_commands_path: "",
test_workers: false,
globals_path: "./nightwatch-global.js",
selenium: {
start_process: true,
server_path: seleniumServer.path,
log_path: "",
host: "127.0.0.1",
port: 4444,
cli_args: { "webdriver.chrome.driver": chromeDriver.path }
},
test_settings: {
default: {
launch_url: "http://localhost:8080/iframe.html?selectedKind=",
skip_testcases_on_fail: false,
end_session_on_fail: false,
screenshots: { enabled: false },
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
chromeOptions: {
// TODO: make clipboard + headless chrome play nice
// args: ["--headless"],
prefs: {
profile: {
default_content_setting_values: {
clipboard: 1
}
}
}
}
}
}
}
}
module.exports = config;