UNPKG

1.24 kBJavaScriptView Raw
1require('babel-register')
2var config = require('../../config')
3
4const serverUrl = `http://${process.env.SERVER_HOST || 'localhost'}:`
5
6// http://nightwatchjs.org/guide#settings-file
7module.exports = {
8 src_folders: ['test/e2e/specs'],
9 output_folder: 'test/e2e/reports',
10 custom_assertions_path: ['test/e2e/custom-assertions'],
11 page_objects_path : ["test/e2e/page-objects"],
12
13 // test_workers: true,
14
15 selenium: {
16 start_process: typeof process.env.SELENIUM_HUB_HOST === 'undefined',
17 server_path: require('selenium-server').path,
18 host: '127.0.0.1',
19 port: 4444,
20 cli_args: {
21 'webdriver.chrome.driver': require('chromedriver').path
22 }
23 },
24
25 test_settings: {
26 default: {
27 selenium_port: 4444,
28 selenium_host: process.env.SELENIUM_HUB_HOST || 'localhost',
29 silent: true,
30 globals: {
31 devServerURL: serverUrl + (process.env.PORT || config.dev.port)
32 }
33 },
34
35 chrome: {
36 desiredCapabilities: {
37 browserName: 'chrome',
38 javascriptEnabled: true,
39 acceptSslCerts: true
40 }
41 },
42
43 firefox: {
44 desiredCapabilities: {
45 browserName: 'firefox',
46 javascriptEnabled: true,
47 acceptSslCerts: true
48 }
49 }
50 }
51}