blob: 947992840dee5614d3f05e2d38b449614b618779 [file] [log] [blame]
Sean Condon5ca00262018-09-06 17:55:25 +01001/*
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 Condon83fc39f2018-04-19 18:56:13 +010017// Protractor configuration file, see link for more information
18// https://github.com/angular/protractor/blob/master/lib/config.ts
19
20const { SpecReporter } = require('jasmine-spec-reporter');
21
22exports.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};