forked from coralproject/talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
72 lines (70 loc) · 1.82 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
const { ROOT_URL } = require('./config');
const REPORTS_FOLDER = process.env.REPORTS_FOLDER || './test/e2e/reports';
module.exports = {
src_folders: './test/e2e/specs/',
output_folder: REPORTS_FOLDER,
page_objects_path: './test/e2e/page_objects',
globals_path: './test/e2e/globals',
selenium: {
start_process: true,
server_path:
'node_modules/selenium-standalone/.selenium/selenium-server/3.8.1-server.jar',
log_path: REPORTS_FOLDER,
host: '127.0.0.1',
port: 6666,
cli_args: {
'webdriver.chrome.driver':
'node_modules/selenium-standalone/.selenium/chromedriver/2.37-x64-chromedriver',
'webdriver.gecko.driver':
'node_modules/selenium-standalone/.selenium/geckodriver/0.20.1-x64-geckodriver',
},
},
test_settings: {
default: {
launch_url: ROOT_URL,
selenium_port: 6666,
selenium_host: 'localhost',
silent: true,
desiredCapabilities: {
javascriptEnabled: true,
acceptSslCerts: true,
webStorageEnabled: true,
databaseEnabled: true,
applicationCacheEnabled: false,
nativeEvents: true,
},
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: REPORTS_FOLDER,
},
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
},
},
'chrome-headless': {
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--disable-gpu', 'window-size=1600,1200'],
},
},
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
},
},
'firefox-headless': {
desiredCapabilities: {
browserName: 'firefox',
'moz:firefoxOptions': {
args: ['-headless'],
},
},
},
},
};