123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // http://nightwatchjs.org/guide#settings-file
- module.exports = {
- 'src_folders': ['test/e2e/specs'],
- 'output_folder': 'test/e2e/reports',
- 'custom_commands_path': ['node_modules/nightwatch-helpers/commands'],
- 'custom_assertions_path': ['node_modules/nightwatch-helpers/assertions'],
- 'selenium': {
- 'start_process': true,
- 'server_path': require('selenium-server').path,
- 'host': '127.0.0.1',
- 'port': 4444,
- 'cli_args': {
- 'webdriver.chrome.driver': require('chromedriver').path
- }
- },
- 'test_settings': {
- 'default': {
- 'selenium_port': 4444,
- 'selenium_host': 'localhost',
- 'silent': true,
- 'screenshots': {
- 'enabled': true,
- 'on_failure': true,
- 'on_error': false,
- 'path': 'test/e2e/screenshots'
- }
- },
- 'chrome': {
- 'desiredCapabilities': {
- 'browserName': 'chrome',
- 'javascriptEnabled': true,
- 'acceptSslCerts': true
- }
- },
- 'phantomjs': {
- 'desiredCapabilities': {
- 'browserName': 'phantomjs',
- 'javascriptEnabled': true,
- 'acceptSslCerts': true,
- 'phantomjs.binary.path': require('phantomjs-prebuilt').path
- }
- }
- }
- }
|