Update INFO.yaml
[appc/cdt.git] / protractor.conf.js
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 ============LICENSE_END============================================ */
21 // Protractor configuration file, see link for more information
22 // https://github.com/angular/protractor/blob/master/lib/config.ts
23
24 const { SpecReporter } = require('jasmine-spec-reporter');
25
26 exports.config = {
27     allScriptsTimeout: 11000,
28     specs: [
29         './e2e/**/*.e2e-spec.ts'
30     ],
31     capabilities: {
32         'browserName': 'chrome'
33     },
34     directConnect: true,
35     baseUrl: 'http://localhost:4200/',
36     framework: 'jasmine',
37     jasmineNodeOpts: {
38         showColors: true,
39         defaultTimeoutInterval: 30000,
40         print: function () { }
41     },
42     onPrepare() {
43         require('ts-node').register({
44             project: 'e2e/tsconfig.e2e.json'
45         });
46         jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
47     }
48 };