protractor.conf.js 811 B

123456789101112131415161718192021222324252627282930313233
  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: 11000,
  6. specs: [
  7. './e2e/**/*.e2e-spec.ts'
  8. ],
  9. capabilities: {
  10. 'browserName': 'chrome',
  11. 'chromeOptions': {
  12. 'args': ['show-fps-counter=true', '--no-sandbox']
  13. }
  14. },
  15. directConnect: true,
  16. baseUrl: 'http://localhost:4200/',
  17. framework: 'jasmine',
  18. jasmineNodeOpts: {
  19. showColors: true,
  20. defaultTimeoutInterval: 30000,
  21. print: function() {}
  22. },
  23. onPrepare() {
  24. require('ts-node').register({
  25. project: 'e2e/tsconfig.e2e.json'
  26. });
  27. jasmine.getEnv().addReporter(new SpecReporter({ acspec: { displayStacktrace: true } }));
  28. }
  29. };