Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 1 | /* |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 21 | ============LICENSE_END============================================ */ |
| 22 | // Protractor configuration file, see link for more information |
| 23 | // https://github.com/angular/protractor/blob/master/lib/config.ts |
| 24 | |
| 25 | const { SpecReporter } = require('jasmine-spec-reporter'); |
| 26 | |
| 27 | exports.config = { |
| 28 | allScriptsTimeout: 11000, |
| 29 | specs: [ |
| 30 | './e2e/**/*.e2e-spec.ts' |
| 31 | ], |
| 32 | capabilities: { |
| 33 | 'browserName': 'chrome' |
| 34 | }, |
| 35 | directConnect: true, |
| 36 | baseUrl: 'http://localhost:4200/', |
| 37 | framework: 'jasmine', |
| 38 | jasmineNodeOpts: { |
| 39 | showColors: true, |
| 40 | defaultTimeoutInterval: 30000, |
| 41 | print: function () { } |
| 42 | }, |
| 43 | onPrepare() { |
| 44 | require('ts-node').register({ |
| 45 | project: 'e2e/tsconfig.e2e.json' |
| 46 | }); |
| 47 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); |
| 48 | } |
| 49 | }; |