nightwatch.config.js 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // http://nightwatchjs.org/guide#settings-file
  2. module.exports = {
  3. 'src_folders': ['test/e2e/specs'],
  4. 'output_folder': 'test/e2e/reports',
  5. 'custom_commands_path': ['test/e2e/custom-commands'],
  6. 'custom_assertions_path': ['test/e2e/custom-assertions'],
  7. 'selenium': {
  8. 'start_process': true,
  9. 'server_path': 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.53.0.jar',
  10. 'host': '127.0.0.1',
  11. 'port': 4444,
  12. 'cli_args': {
  13. 'webdriver.chrome.driver': require('chromedriver').path
  14. }
  15. },
  16. 'test_settings': {
  17. 'default': {
  18. 'selenium_port': 4444,
  19. 'selenium_host': 'localhost',
  20. 'silent': true
  21. },
  22. 'chrome': {
  23. 'desiredCapabilities': {
  24. 'browserName': 'chrome',
  25. 'javascriptEnabled': true,
  26. 'acceptSslCerts': true
  27. }
  28. },
  29. 'firefox': {
  30. 'desiredCapabilities': {
  31. 'browserName': 'firefox',
  32. 'javascriptEnabled': true,
  33. 'acceptSslCerts': true
  34. }
  35. }
  36. }
  37. }