long
10 天以前 7ccdf15645b82b8be8a165b20cbb34294c3f6e9b
提交 | 用户 | age
3ac5f2 1 require('babel-register')
J 2 var config = require('../../config')
3
4 // http://nightwatchjs.org/gettingstarted#settings-file
5 module.exports = {
6   src_folders: ['test/e2e/specs'],
7   output_folder: 'test/e2e/reports',
8   custom_assertions_path: ['test/e2e/custom-assertions'],
9
10   selenium: {
11     start_process: true,
12     server_path: require('selenium-server').path,
13     host: '127.0.0.1',
14     port: 4444,
15     cli_args: {
16       'webdriver.chrome.driver': require('chromedriver').path
17     }
18   },
19
20   test_settings: {
21     default: {
22       selenium_port: 4444,
23       selenium_host: 'localhost',
24       silent: true,
25       globals: {
26         devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
27       }
28     },
29
30     chrome: {
31       desiredCapabilities: {
32         browserName: 'chrome',
33         javascriptEnabled: true,
34         acceptSslCerts: true
35       }
36     },
37
38     firefox: {
39       desiredCapabilities: {
40         browserName: 'firefox',
41         javascriptEnabled: true,
42         acceptSslCerts: true
43       }
44     }
45   }
46 }