protractor.conf.js 904 B

12345678910111213141516171819202122232425262728293031323334353637
  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, StacktraceOption } = 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. SELENIUM_PROMISE_MANAGER: false,
  18. baseUrl: 'http://localhost:4200/',
  19. framework: 'jasmine',
  20. jasmineNodeOpts: {
  21. showColors: true,
  22. defaultTimeoutInterval: 30000,
  23. print: function() {}
  24. },
  25. onPrepare() {
  26. require('ts-node').register({
  27. project: require('path').join(__dirname, './tsconfig.json')
  28. });
  29. jasmine.getEnv().addReporter(new SpecReporter({
  30. spec: {
  31. displayStacktrace: StacktraceOption.PRETTY
  32. }
  33. }));
  34. }
  35. };