protractor.conf.js 972 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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: 51000,
  10. specs: [
  11. './src/**/*.e2e-spec.ts'
  12. ],
  13. capabilities: {
  14. browserName: 'chrome',
  15. chromeOptions: {
  16. args: ['--window-size=1920,870']
  17. }
  18. },
  19. directConnect: true,
  20. SELENIUM_PROMISE_MANAGER: false,
  21. baseUrl: 'http://localhost:4200/',
  22. framework: 'jasmine',
  23. jasmineNodeOpts: {
  24. showColors: true,
  25. defaultTimeoutInterval: 50000,
  26. print: function() {}
  27. },
  28. onPrepare() {
  29. require('ts-node').register({
  30. project: require('path').join(__dirname, './tsconfig.json')
  31. });
  32. jasmine.getEnv().addReporter(new SpecReporter({
  33. spec: {
  34. displayStacktrace: StacktraceOption.PRETTY
  35. }
  36. }));
  37. }
  38. };