local-protractor.conf.js 933 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Protractor configuration file, see link for more information
  2. // https://github.com/angular/protractor/blob/master/lib/config.ts
  3. const {SpecReporter} = require('jasmine-spec-reporter')
  4. exports.config = {
  5. allScriptsTimeout: 25000,
  6. specs: ['./src/**/*.e2e-spec.ts'],
  7. seleniumAddress: 'http://localhost:4444/wd/hub',
  8. capabilities: {
  9. 'browserName': 'firefox',
  10. 'moz:firefoxOptions': {
  11. 'args': ["-headless"],
  12. "log": {
  13. "level": "info" // default is "info"
  14. }
  15. }
  16. },
  17. // maxSessions: 1,
  18. baseUrl: 'http://localhost:3333/',
  19. framework: 'jasmine',
  20. jasmineNodeOpts: {
  21. showColors: true,
  22. defaultTimeoutInterval: 45000,
  23. print: function() {}
  24. },
  25. onPrepare() {
  26. require('ts-node').register({
  27. project: require('path').join(__dirname, './tsconfig.e2e.json')
  28. })
  29. jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }))
  30. }
  31. }