forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
27 lines (26 loc) · 741 Bytes
/
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
const admin_username = process.env.ADMIN_USERNAME || 'admin';
const admin_password = process.env.ADMIN_PASSWORD || 'admin';
const launch_url = process.env.LAUNCH_URL || 'https://localhost/dolibarr/htdocs/';
module.exports = {
page_objects_path : './test/acceptance/pageObjects/', // jshint ignore:line
src_folders : ['test'],
test_settings : {
default : {
selenium_host : '127.0.0.1',
launchUrl : launch_url,
globals : {
backend_url : launch_url,
adminUsername : admin_username,
adminPassword : admin_password
},
desiredCapabilities : {
browserName : 'chrome',
javascriptEnabled : true,
chromeOptions : {
args : ['disable-gpu', 'window-size=1280,1024'],
w3c : false
}
}
}
}
};