protractor.conf.js 810 B

1234567891011121314151617181920212223242526272829303132
  1. // @ts-check
  2. // Protractor configuration file, see link for more information
  3. // https://github.com/angular/protractor/blob/master/lib/config.ts
  4. const { SpecReporter } = require('jasmine-spec-reporter');
  5. /**
  6. * @type { import("protractor").Config }
  7. */
  8. exports.config = {
  9. allScriptsTimeout: 11000,
  10. specs: [
  11. './src/**/*.e2e-spec.ts'
  12. ],
  13. capabilities: {
  14. 'browserName': 'chrome'
  15. },
  16. directConnect: true,
  17. baseUrl: 'http://localhost:4200/',
  18. framework: 'jasmine',
  19. jasmineNodeOpts: {
  20. showColors: true,
  21. defaultTimeoutInterval: 30000,
  22. print: function() {}
  23. },
  24. onPrepare() {
  25. require('ts-node').register({
  26. project: require('path').join(__dirname, './tsconfig.json')
  27. });
  28. jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  29. }
  30. };