local-protractor.conf.js 956 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. directConnect: true,
  8. capabilities: {
  9. 'browserName': 'firefox',
  10. 'moz:firefoxOptions': {
  11. binary: '/usr/bin/firefox-developer-edition',
  12. // args: ["-headless"],
  13. log: {
  14. "level": "info" // default is "info"
  15. }
  16. }
  17. },
  18. // maxSessions: 1,
  19. baseUrl: 'http://localhost:3000/',
  20. framework: 'jasmine',
  21. jasmineNodeOpts: {
  22. showColors: true,
  23. defaultTimeoutInterval: 45000,
  24. print: function() {}
  25. },
  26. onPrepare() {
  27. require('ts-node').register({
  28. project: require('path').join(__dirname, './tsconfig.e2e.json')
  29. })
  30. jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }))
  31. }
  32. }