Sean Condon | 5ca0026 | 2018-09-06 17:55:25 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 17 | // Protractor configuration file, see link for more information |
| 18 | // https://github.com/angular/protractor/blob/master/lib/config.ts |
| 19 | |
| 20 | const { SpecReporter } = require('jasmine-spec-reporter'); |
| 21 | |
| 22 | exports.config = { |
| 23 | allScriptsTimeout: 11000, |
| 24 | specs: [ |
| 25 | './e2e/**/*.e2e-spec.ts' |
| 26 | ], |
| 27 | capabilities: { |
| 28 | 'browserName': 'chrome' |
| 29 | }, |
| 30 | directConnect: true, |
| 31 | baseUrl: 'http://localhost:4200/', |
| 32 | framework: 'jasmine', |
| 33 | jasmineNodeOpts: { |
| 34 | showColors: true, |
| 35 | defaultTimeoutInterval: 30000, |
| 36 | print: function() {} |
| 37 | }, |
| 38 | onPrepare() { |
| 39 | require('ts-node').register({ |
| 40 | project: 'e2e/tsconfig.e2e.json' |
| 41 | }); |
| 42 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); |
| 43 | } |
| 44 | }; |