nightwatch.conf.js 1.0KB

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