nightwatch.conf.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. require('babel-register')
  2. var config = require('../../config')
  3. // http://nightwatchjs.org/guide#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': 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.53.1.jar',
  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. }