protractor.conf.js 780 B

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