Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame^] | 1 | // Protractor configuration file, see link for more information |
| 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts |
| 3 | |
| 4 | /*global jasmine */ |
| 5 | var SpecReporter = require('jasmine-spec-reporter'); |
| 6 | |
| 7 | exports.config = { |
| 8 | allScriptsTimeout: 11000, |
| 9 | specs: [ |
| 10 | './e2e/**/*.e2e-spec.ts' |
| 11 | ], |
| 12 | capabilities: { |
| 13 | 'browserName': 'chrome' |
| 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 | useAllAngular2AppRoots: true, |
| 24 | beforeLaunch: function() { |
| 25 | require('ts-node').register({ |
| 26 | project: 'e2e' |
| 27 | }); |
| 28 | }, |
| 29 | onPrepare: function() { |
| 30 | jasmine.getEnv().addReporter(new SpecReporter()); |
| 31 | } |
| 32 | }; |