[ADF-4587] Fix e2e tests (#4757)

* Fix user_info test

* Removing duplication and hardcoded protocol

* Fix linting and update script

* Removing hardcoded protocol

* Add protocol to scripts

* Fix C260117

* Enable screenshots for cloud tests

* Update process-services-cloud-e2e.sh
This commit is contained in:
cristinaj
2019-05-22 12:15:12 +03:00
committed by Denys Vuika
parent 57a162fcf0
commit 339a6e7a18
12 changed files with 16 additions and 21 deletions

View File

@@ -45,14 +45,12 @@ var APIUtils = function () {
*/
this.getBaseURL = function (application, urlComponentsParam) {
var urlComponents = {};
urlComponents.protocol = TestConfig[application].protocol;
urlComponents.hostname = TestConfig[application].host;
urlComponents.port = TestConfig[application].port;
urlComponents.path = TestConfig[application].apiContextRoot;
Object.assign(urlComponents, urlComponentsParam);
return url(urlComponents.protocol
+ "://" + urlComponents.hostname
return url(urlComponents.hostname
+ (urlComponents.port !== "" ? ":" + urlComponents.port : ""),
urlComponents.path);
};