2019-08-08 19:39:06 +03:00
|
|
|
/*
|
|
|
|
|
* Copyright © 2016-2019 The Thingsboard Authors
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
// Protractor configuration file, see link for more information
|
|
|
|
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
|
|
|
|
2020-02-04 15:14:17 +02:00
|
|
|
const { SpecReporter } = require("jasmine-spec-reporter");
|
2019-08-08 19:39:06 +03:00
|
|
|
|
|
|
|
|
exports.config = {
|
|
|
|
|
allScriptsTimeout: 11000,
|
|
|
|
|
specs: [
|
2020-02-04 15:14:17 +02:00
|
|
|
"./src/**/*.e2e-spec.ts",
|
2019-08-08 19:39:06 +03:00
|
|
|
],
|
|
|
|
|
capabilities: {
|
2020-02-04 15:14:17 +02:00
|
|
|
"browserName": "chrome",
|
2019-08-08 19:39:06 +03:00
|
|
|
},
|
|
|
|
|
directConnect: true,
|
2020-02-04 15:14:17 +02:00
|
|
|
baseUrl: "http://localhost:4200/",
|
|
|
|
|
framework: "jasmine",
|
2019-08-08 19:39:06 +03:00
|
|
|
jasmineNodeOpts: {
|
|
|
|
|
showColors: true,
|
|
|
|
|
defaultTimeoutInterval: 30000,
|
2020-02-04 15:14:17 +02:00
|
|
|
print: function() {},
|
2019-08-08 19:39:06 +03:00
|
|
|
},
|
|
|
|
|
onPrepare() {
|
2020-02-04 15:14:17 +02:00
|
|
|
require("ts-node").register({
|
|
|
|
|
project: require("path").join(__dirname, "./tsconfig.e2e.json"),
|
2019-08-08 19:39:06 +03:00
|
|
|
});
|
|
|
|
|
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
2020-02-04 15:14:17 +02:00
|
|
|
},
|
|
|
|
|
};
|