1
0

nightwatch.config.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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': ['node_modules/nightwatch-helpers/commands'],
  6. 'custom_assertions_path': ['node_modules/nightwatch-helpers/assertions'],
  7. 'selenium': {
  8. 'start_process': true,
  9. 'server_path': require('selenium-server').path,
  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. 'screenshots': {
  22. 'enabled': true,
  23. 'on_failure': true,
  24. 'on_error': false,
  25. 'path': 'test/e2e/screenshots'
  26. }
  27. },
  28. 'chrome': {
  29. 'desiredCapabilities': {
  30. 'browserName': 'chrome',
  31. 'javascriptEnabled': true,
  32. 'acceptSslCerts': true
  33. }
  34. },
  35. 'phantomjs': {
  36. 'desiredCapabilities': {
  37. 'browserName': 'phantomjs',
  38. 'javascriptEnabled': true,
  39. 'acceptSslCerts': true,
  40. 'phantomjs.binary.path': require('phantomjs-prebuilt').path
  41. }
  42. }
  43. }
  44. }