修改过页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

1 year ago
  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. }