@sap_oss/wdio-qmate-service 3.5.13 → 3.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/docs/doc.md +2 -2
  2. package/docs/sections/features/selectors.md +1 -1
  3. package/lib/reuse/constants.d.ts +1 -0
  4. package/lib/reuse/constants.js +5 -0
  5. package/lib/reuse/constants.js.map +1 -0
  6. package/lib/reuse/modules/ui5/mockserver.d.ts +2 -2
  7. package/lib/reuse/modules/ui5/mockserver.js +2 -2
  8. package/lib/reuse/modules/ui5/userInteraction.d.ts +3 -5
  9. package/lib/reuse/modules/ui5/userInteraction.js +40 -68
  10. package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
  11. package/package.json +2 -2
  12. package/reuseApi.json +1 -1
  13. package/test/core/functional/chaining/test.conf.js +3 -1
  14. package/test/core/functional/locators/ancestorProperties.test.js +4 -3
  15. package/test/core/functional/locators/childProperties.test.js +2 -1
  16. package/test/core/functional/locators/descendantProperties.test.js +3 -2
  17. package/test/core/functional/locators/parentProperties.test.js +2 -1
  18. package/test/core/functional/locators/test.locator.conf.js +2 -1
  19. package/test/core/functional/nativeBrowser/runInBrowser.test.js +3 -1
  20. package/test/core/functional/nativeBrowser/test.conf.js +2 -1
  21. package/test/core/functional/nonUi5/test.conf.js +2 -1
  22. package/test/core/functional/ui5Properties/getAggregations.test.js +4 -3
  23. package/test/core/functional/ui5Properties/getProperties.test.js +5 -4
  24. package/test/core/functional/ui5Properties/test.conf.js +2 -1
  25. package/test/core/functional/uiveri5/test.conf.js +2 -1
  26. package/test/core/testIntegration/config.js +2 -1
  27. package/test/core/testIntegration/configMultiCombo.js +2 -1
  28. package/test/core/testIntegration/configTable.js +2 -1
  29. package/test/reuse/common/assertion/test.assertion.conf.js +2 -1
  30. package/test/reuse/common/navigation/navigateToUrl.spec.js +3 -1
  31. package/test/reuse/common/navigation/navigateToUrlAndRetry.spec.js +3 -1
  32. package/test/reuse/common/userInteraction/clearAndFillActive.spec.js +4 -3
  33. package/test/reuse/common/userInteraction/clearAndFillActiveAndRetry.spec.js +4 -3
  34. package/test/reuse/common/userInteraction/fillActive.spec.js +7 -6
  35. package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +5 -4
  36. package/test/reuse/common/userInteraction/pressKey.spec.js +2 -1
  37. package/test/reuse/nonUi5/assertion/expectCssPropertyValueToBe.spec.js +5 -4
  38. package/test/reuse/nonUi5/assertion/expectTextToBe.spec.js +5 -4
  39. package/test/reuse/nonUi5/assertion/expectToBeVisible.spec.js +2 -1
  40. package/test/reuse/nonUi5/assertion/expectValueToBe.spec.js +3 -2
  41. package/test/reuse/nonUi5/assertion/test.assertion.conf.js +2 -1
  42. package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +3 -1
  43. package/test/reuse/nonUi5/element/getAttributeValue.spec.js +4 -3
  44. package/test/reuse/nonUi5/element/getByChild.spec.js +5 -4
  45. package/test/reuse/nonUi5/element/getByClass.spec.js +5 -4
  46. package/test/reuse/nonUi5/element/getByCss.spec.js +4 -3
  47. package/test/reuse/nonUi5/element/getByCssContainingText.spec.js +5 -4
  48. package/test/reuse/nonUi5/element/getById.spec.js +4 -3
  49. package/test/reuse/nonUi5/element/getByParent.spec.js +5 -4
  50. package/test/reuse/nonUi5/element/getByXPath.spec.js +3 -2
  51. package/test/reuse/nonUi5/element/getCssPropertyValue.spec.js +4 -3
  52. package/test/reuse/nonUi5/element/getValue.spec.js +4 -3
  53. package/test/reuse/nonUi5/element/highlight.spec.js +3 -1
  54. package/test/reuse/nonUi5/element/isEnabled.spec.js +4 -3
  55. package/test/reuse/nonUi5/element/isPresent.spec.js +5 -3
  56. package/test/reuse/nonUi5/element/isPresentByCss.spec.js +3 -2
  57. package/test/reuse/nonUi5/element/isPresentByXPath.spec.js +3 -2
  58. package/test/reuse/nonUi5/element/setInnerHTML.spec.js +2 -2
  59. package/test/reuse/nonUi5/element/test.element.conf.js +2 -1
  60. package/test/reuse/nonUi5/element/test.element.sauceLabs.conf.js +3 -1
  61. package/test/reuse/nonUi5/userInteraction/clickElementInSvg.spec.js +2 -2
  62. package/test/reuse/nonUi5/userInteraction/doubleClick.spec.js +2 -2
  63. package/test/reuse/nonUi5/userInteraction/moveCursorAndClick.spec.js +2 -1
  64. package/test/reuse/nonUi5/userInteraction/rightClick.spec.js +2 -1
  65. package/test/reuse/nonUi5/userInteraction/scrollToElement.spec.js +4 -3
  66. package/test/reuse/ui5/assertion/expectCssPropertyValueToBe.spec.js +3 -2
  67. package/test/reuse/ui5/assertion/expectMessageToastTextToBe.spec.js +3 -2
  68. package/test/reuse/ui5/assertion/expectToBeVisible.spec.js +2 -1
  69. package/test/reuse/ui5/assertion/expectToBeVisibleInViewport.spec.js +2 -1
  70. package/test/reuse/ui5/assertion/expectValidationError.spec.js +3 -2
  71. package/test/reuse/ui5/assertion/expectValidationSuccess.spec.js +3 -2
  72. package/test/reuse/ui5/assertion/expectValueToBeDefined.spec.js +2 -1
  73. package/test/reuse/ui5/assertion/test.assertion.conf.js +2 -1
  74. package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +3 -1
  75. package/test/reuse/ui5/confirmationDialog/clickButton.spec.js +3 -2
  76. package/test/reuse/ui5/confirmationDialog/clickNo.spec.js +3 -2
  77. package/test/reuse/ui5/confirmationDialog/clickOk.spec.js +2 -1
  78. package/test/reuse/ui5/confirmationDialog/clickYes.spec.js +2 -1
  79. package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.conf.js +2 -1
  80. package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +3 -1
  81. package/test/reuse/ui5/control/focus.spec.js +5 -4
  82. package/test/reuse/ui5/control/getAggregationProperty.spec.js +3 -2
  83. package/test/reuse/ui5/control/getAssociationProperty.spec.js +3 -2
  84. package/test/reuse/ui5/control/test.control.conf.js +2 -1
  85. package/test/reuse/ui5/control/test.control.sauceLab.conf.js +2 -1
  86. package/test/reuse/ui5/date/fillRange.spec.js +3 -2
  87. package/test/reuse/ui5/date/pick.spec.js +5 -4
  88. package/test/reuse/ui5/date/pickRange.spec.js +5 -4
  89. package/test/reuse/ui5/date/pickWithTime.spec.js +2 -1
  90. package/test/reuse/ui5/element/getByChild.spec.js +4 -4
  91. package/test/reuse/ui5/element/getByParent.spec.js +4 -4
  92. package/test/reuse/ui5/element/getByText.spec.js +2 -1
  93. package/test/reuse/ui5/element/getCssPropertyValue.spec.js +3 -2
  94. package/test/reuse/ui5/element/getPropertyValue.spec.js +2 -1
  95. package/test/reuse/ui5/element/test.element.conf.js +3 -1
  96. package/test/reuse/ui5/element/test.element.sauceLab.conf.js +2 -1
  97. package/test/reuse/ui5/element/waitForAll.spec.js +3 -2
  98. package/test/reuse/ui5/errorDialog/clickClose.spec.js +2 -1
  99. package/test/reuse/ui5/errorDialog/expectToBeVisible.spec.js +2 -1
  100. package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServer.html +2 -2
  101. package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServerAllData.html +2 -2
  102. package/test/reuse/ui5/mockserver_qunit/test/unit/unitTests.qunit.html +1 -1
  103. package/test/reuse/ui5/navigationBar/clickSapLogo.spec.js +2 -1
  104. package/test/reuse/ui5/navigationBar/test.navigationBar.conf.js +2 -1
  105. package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +2 -1
  106. package/test/reuse/ui5/session/logout.spec.js +2 -2
  107. package/test/reuse/ui5/table/clickSettingsButton.spec.js +3 -2
  108. package/test/reuse/ui5/table/deselectAllRows.spec.js +4 -3
  109. package/test/reuse/ui5/table/deselectRowByIndex.spec.js +4 -3
  110. package/test/reuse/ui5/table/getAllColumnValuesByName.spec.js +2 -1
  111. package/test/reuse/ui5/table/getRowSelectorByIndex.spec.js +2 -1
  112. package/test/reuse/ui5/table/getSelectorForRowByIndex.spec.js +6 -5
  113. package/test/reuse/ui5/table/getSelectorsForRowsByValues.spec.js +7 -6
  114. package/test/reuse/ui5/table/getTotalNumberOfRows.spec.js +4 -3
  115. package/test/reuse/ui5/table/getTotalNumberOfRowsByValues.spec.js +6 -5
  116. package/test/reuse/ui5/table/openItemByIndex.spec.js +4 -3
  117. package/test/reuse/ui5/table/openItemByValues.spec.js +4 -3
  118. package/test/reuse/ui5/table/selectAllRows.spec.js +4 -3
  119. package/test/reuse/ui5/table/selectRowByIndex.spec.js +4 -3
  120. package/test/reuse/ui5/table/selectRowByValues.spec.js +5 -4
  121. package/test/reuse/ui5/table/sortColumnAscending.spec.js +4 -3
  122. package/test/reuse/ui5/table/sortColumnDescending.spec.js +3 -2
  123. package/test/reuse/ui5/userInteraction/check.spec.js +4 -3
  124. package/test/reuse/ui5/userInteraction/clear.spec.js +4 -3
  125. package/test/reuse/ui5/userInteraction/clearAndFill.spec.js +7 -6
  126. package/test/reuse/ui5/userInteraction/clearAndFillAndRetry.spec.js +6 -5
  127. package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInput.spec.js +3 -2
  128. package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInputAndRetry.spec.js +2 -1
  129. package/test/reuse/ui5/userInteraction/clearAndRetry.spec.js +3 -2
  130. package/test/reuse/ui5/userInteraction/click.spec.js +7 -6
  131. package/test/reuse/ui5/userInteraction/clickAndRetry.spec.js +4 -3
  132. package/test/reuse/ui5/userInteraction/clickSelectArrow.spec.js +3 -2
  133. package/test/reuse/ui5/userInteraction/clickSelectArrowAndRetry.spec.js +4 -3
  134. package/test/reuse/ui5/userInteraction/clickTab.spec.js +4 -3
  135. package/test/reuse/ui5/userInteraction/doubleClick.spec.js +5 -4
  136. package/test/reuse/ui5/userInteraction/dragAndDrop.spec.js +2 -1
  137. package/test/reuse/ui5/userInteraction/fill.spec.js +6 -5
  138. package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +5 -4
  139. package/test/reuse/ui5/userInteraction/mouseOverElement.spec.js +3 -2
  140. package/test/reuse/ui5/userInteraction/openF4Help.spec.js +3 -2
  141. package/test/reuse/ui5/userInteraction/rightClick.spec.js +5 -4
  142. package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +5 -4
  143. package/test/reuse/ui5/userInteraction/searchFor.spec.js +5 -4
  144. package/test/reuse/ui5/userInteraction/selectBox.spec.js +5 -4
  145. package/test/reuse/ui5/userInteraction/selectCombobox.spec.js +5 -4
  146. package/test/reuse/ui5/userInteraction/selectFromTab.spec.js +2 -1
  147. package/test/reuse/ui5/userInteraction/selectMultiComboBox.spec.js +6 -5
  148. package/test/reuse/ui5/userInteraction/test.userInteraction.conf.js +2 -1
  149. package/test/reuse/ui5/userInteraction/test.userInteraction.sauceLab.conf.js +2 -1
  150. package/test/reuse/ui5/userInteraction/uncheck.spec.js +4 -3
  151. package/test/reuse/util/browser/back.spec.js +2 -1
  152. package/test/reuse/util/browser/forward.spec.js +2 -1
  153. package/test/reuse/util/browser/getBaseUrl.spec.js +2 -1
  154. package/test/reuse/util/browser/getCurrentWindow.spec.js +3 -2
  155. package/test/reuse/util/browser/setBaseUrl.spec.js +3 -2
  156. package/test/reuse/util/browser/switchToDefaultContent.spec.js +2 -1
  157. package/test/reuse/util/browser/switchToIframe.spec.js +3 -2
  158. package/test/reuse/util/browser/switchToWindow.spec.js +3 -2
  159. package/test/reuse/util/browser/test.browser.conf.js +3 -1
  160. package/test/reuse/util/component/test.component.conf.js +2 -1
  161. package/test/reuse/util/console/test.console.conf.js +2 -1
  162. package/test/reuse/util/data/test.data.conf.js +2 -1
  163. package/test/reuse/util/data/test.data.privacy.conf.js +2 -1
  164. package/test/reuse/util/file/test.file.conf.js +2 -1
  165. package/test/reuse/util/file/upload.spec.js +3 -2
  166. package/test/reuse/util/formatter/test.formatter.conf.js +2 -1
  167. package/test/reuse/util/system/test.system.conf.js +2 -1
  168. package/test/watchMode/config.js +2 -2
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const {
2
3
  handleCookiesConsent
3
4
  } = require("../../../helper/utils");
@@ -22,7 +23,7 @@ const timeout = 30000;
22
23
  describe("userInteraction - openF4Help - use valuehelp icon button", function () {
23
24
 
24
25
  it("Preparation", async function () {
25
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputAssisted");
26
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputAssisted`);
26
27
  await handleCookiesConsent();
27
28
  await util.browser.switchToIframe("[id='sampleFrame']");
28
29
  });
@@ -41,7 +42,7 @@ describe("userInteraction - openF4Help - use valuehelp icon button", function ()
41
42
  describe("userInteraction - openF4Help - use F4 Key press", function () {
42
43
 
43
44
  it("Preparation", async function () {
44
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputAssisted");
45
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputAssisted`);
45
46
  await handleCookiesConsent();
46
47
  await util.browser.switchToIframe("[id='sampleFrame']");
47
48
  });
@@ -1,9 +1,10 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const { handleCookiesConsent } = require("../../../helper/utils");
2
3
 
3
4
  describe("userInteraction - rightClick", function () {
4
5
 
5
6
  it("Preparation", async function () {
6
- await browser.navigateTo("https://sapui5.hana.ondemand.com/");
7
+ await browser.navigateTo(`${BASE_URL}/`);
7
8
  await handleCookiesConsent();
8
9
  });
9
10
 
@@ -19,7 +20,7 @@ describe("userInteraction - rightClick", function () {
19
20
  });
20
21
 
21
22
  it("Verification", async function () {
22
- await common.assertion.expectUrlToBe("https://sapui5.hana.ondemand.com/");
23
+ await common.assertion.expectUrlToBe(`${BASE_URL}/`);
23
24
  await common.userInteraction.pressEscape();
24
25
  });
25
26
  });
@@ -27,7 +28,7 @@ describe("userInteraction - rightClick", function () {
27
28
  describe("userInteraction - rightClick on not displayed element", function () {
28
29
 
29
30
  it("Preparation", async function () {
30
- await browser.navigateTo("https://sapui5.hana.ondemand.com/");
31
+ await browser.navigateTo(`${BASE_URL}/`);
31
32
  await handleCookiesConsent();
32
33
  });
33
34
 
@@ -50,7 +51,7 @@ describe("userInteraction - rightClick on not displayed element", function () {
50
51
  describe("userInteraction - rightClick on invisible element", function () {
51
52
 
52
53
  it("Preparation", async function () {
53
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111");
54
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111`);
54
55
  await handleCookiesConsent();
55
56
  });
56
57
 
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  const {
3
4
  handleCookiesConsent
4
5
  } = require("../../../helper/utils");
@@ -6,7 +7,7 @@ const {
6
7
  describe("element - scrollToElement - default, no args", function () {
7
8
 
8
9
  it("Preparation", async function () {
9
- await browser.navigateTo("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
10
+ await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
10
11
  });
11
12
 
12
13
  it("Execution & Verification", async function () {
@@ -30,7 +31,7 @@ describe("element - scrollToElement - default, no args", function () {
30
31
  describe("element - scrollToElement - with custom alignment options ", function () {
31
32
 
32
33
  it("Preparation", async function () {
33
- await browser.navigateTo("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
34
+ await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
34
35
  });
35
36
 
36
37
  it("Execution & Verification", async function () {
@@ -53,7 +54,7 @@ describe("element - scrollToElement - with custom alignment options ", function
53
54
 
54
55
  describe("element - scrollToElement outside of viewpoint", function () {
55
56
  it("Preparation", async function () {
56
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
57
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
57
58
  await handleCookiesConsent();
58
59
  await util.browser.switchToIframe("[id='sampleFrame']");
59
60
  });
@@ -92,7 +93,7 @@ describe("element - scrollToElement outside of viewpoint", function () {
92
93
  describe("element - scrollToElement and catch error", function () {
93
94
 
94
95
  it("Preparation", async function () {
95
- await browser.navigateTo("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
96
+ await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
96
97
  });
97
98
 
98
99
  it("Execution & Verification", async function () {
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const {
2
3
  handleCookiesConsent
3
4
  } = require("../../../helper/utils");
@@ -5,7 +6,7 @@ const {
5
6
  describe("userInteraction - searchFor - use button", function () {
6
7
 
7
8
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField");
9
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField`);
9
10
  await handleCookiesConsent();
10
11
  await util.browser.switchToIframe("[id='sampleFrame']");
11
12
  });
@@ -52,7 +53,7 @@ describe("userInteraction - searchFor - use button", function () {
52
53
  describe("userInteraction - searchFor - use Enter", function () {
53
54
 
54
55
  it("Preparation", async function () {
55
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField");
56
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField`);
56
57
  await handleCookiesConsent();
57
58
  await util.browser.switchToIframe("[id='sampleFrame']");
58
59
  });
@@ -99,7 +100,7 @@ describe("userInteraction - searchFor - use Enter", function () {
99
100
  describe("userInteraction - searchFor - use Enter and wrong selector", function () {
100
101
 
101
102
  it("Preparation", async function () {
102
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField");
103
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField`);
103
104
  await handleCookiesConsent();
104
105
  await util.browser.switchToIframe("[id='sampleFrame']");
105
106
  });
@@ -129,7 +130,7 @@ describe("userInteraction - searchFor - use Enter and wrong selector", function
129
130
  describe("userInteraction - resetSearch", function () {
130
131
 
131
132
  it("Preparation", async function () {
132
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField");
133
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchField`);
133
134
  await handleCookiesConsent();
134
135
  await util.browser.switchToIframe("[id='sampleFrame']");
135
136
  });
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const {
2
3
  handleCookiesConsent
3
4
  } = require("../../../helper/utils");
@@ -10,7 +11,7 @@ describe("userInteraction - selectBox", function () {
10
11
  let index;
11
12
 
12
13
  it("Preparation", async function () {
13
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Select/sample/sap.m.sample.Select");
14
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Select/sample/sap.m.sample.Select`);
14
15
  await handleCookiesConsent();
15
16
  await util.browser.switchToIframe("[id='sampleFrame']");
16
17
  });
@@ -44,7 +45,7 @@ describe("userInteraction - selectBox use wrong selector", function () {
44
45
  let index;
45
46
 
46
47
  it("Preparation", async function () {
47
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Select/sample/sap.m.sample.Select");
48
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Select/sample/sap.m.sample.Select`);
48
49
  await handleCookiesConsent();
49
50
  await util.browser.switchToIframe("[id='sampleFrame']");
50
51
  });
@@ -73,7 +74,7 @@ describe("userInteraction - selectBox use wrong value", function () {
73
74
  let index;
74
75
 
75
76
  it("Preparation", async function () {
76
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Select/sample/sap.m.sample.Select");
77
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Select/sample/sap.m.sample.Select`);
77
78
  await handleCookiesConsent();
78
79
  await util.browser.switchToIframe("[id='sampleFrame']");
79
80
  });
@@ -103,7 +104,7 @@ describe("userInteraction - use 3rd selectBox on page", function () {
103
104
  let index;
104
105
 
105
106
  it("Preparation", async function () {
106
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Select/sample/sap.m.sample.SelectValueState");
107
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Select/sample/sap.m.sample.SelectValueState`);
107
108
  await handleCookiesConsent();
108
109
  await util.browser.refresh();
109
110
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const {
2
3
  handleCookiesConsent
3
4
  } = require("../../../helper/utils");
@@ -9,7 +10,7 @@ describe("userInteraction - selectComboBox", function () {
9
10
  let expectedValue;
10
11
 
11
12
  it("Preparation", async function () {
12
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox");
13
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox`);
13
14
  await handleCookiesConsent();
14
15
  await util.browser.switchToIframe("[id='sampleFrame']");
15
16
  });
@@ -37,7 +38,7 @@ describe("userInteraction - selectComboBox use wrong selector", function () {
37
38
  let value;
38
39
 
39
40
  it("Preparation", async function () {
40
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox");
41
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox`);
41
42
  await handleCookiesConsent();
42
43
  await util.browser.switchToIframe("[id='sampleFrame']");
43
44
  });
@@ -61,7 +62,7 @@ describe("userInteraction - selectComboBox use wrong value", function () {
61
62
  let selector;
62
63
 
63
64
  it("Preparation", async function () {
64
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox");
65
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox`);
65
66
  await handleCookiesConsent();
66
67
  await util.browser.switchToIframe("[id='sampleFrame']");
67
68
  });
@@ -88,7 +89,7 @@ describe("userInteraction - selectComboBox with index > 0", function () {
88
89
  const secondIndex = 3;
89
90
 
90
91
  it("Preparation", async function () {
91
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBoxValueState");
92
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBoxValueState`);
92
93
  await util.browser.refresh();
93
94
  await handleCookiesConsent();
94
95
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -1,8 +1,9 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const { handleCookiesConsent } = require("../../../helper/utils");
2
3
 
3
4
  describe("userInteraction - selectFromTab", function () {
4
5
  it("Preparation", async function () {
5
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/api/sap.m.IconTabBar");
6
+ await browser.navigateTo(`${BASE_URL}/#/api/sap.m.IconTabBar`);
6
7
  await handleCookiesConsent();
7
8
  });
8
9
 
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const {
2
3
  handleCookiesConsent
3
4
  } = require("../../../helper/utils");
@@ -10,7 +11,7 @@ describe("userInteraction - selectMultiComboBox", function () {
10
11
  let expectedValue;
11
12
 
12
13
  it("Preparation", async function () {
13
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
14
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
14
15
  await handleCookiesConsent();
15
16
  await util.browser.switchToIframe("[id='sampleFrame']");
16
17
  });
@@ -36,7 +37,7 @@ describe("userInteraction - selectMultiComboBox", function () {
36
37
  describe("userInteraction - selectMultiComboBox (outside of a Viewport)", function () {
37
38
 
38
39
  it("Preparation", async function () {
39
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
40
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
40
41
  await handleCookiesConsent();
41
42
  await util.browser.switchToIframe("[id='sampleFrame']");
42
43
  });
@@ -72,7 +73,7 @@ describe("userInteraction - selectMultiComboBox use wrong selector", function ()
72
73
  let value2;
73
74
 
74
75
  it("Preparation", async function () {
75
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
76
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
76
77
  await handleCookiesConsent();
77
78
  await util.browser.switchToIframe("[id='sampleFrame']");
78
79
  });
@@ -98,7 +99,7 @@ describe("userInteraction - selectMultiComboBox use wrong value", function () {
98
99
  let value2;
99
100
 
100
101
  it("Preparation", async function () {
101
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
102
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
102
103
  await handleCookiesConsent();
103
104
  await util.browser.switchToIframe("[id='sampleFrame']");
104
105
  });
@@ -127,7 +128,7 @@ describe("userInteraction - selectMultiComboBox with index > 0", function () {
127
128
  const secondIndex = 3;
128
129
 
129
130
  it("Preparation", async function () {
130
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBoxSuggestionsAndValueState");
131
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBoxSuggestionsAndValueState`);
131
132
  await util.browser.refresh();
132
133
  await handleCookiesConsent();
133
134
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 5,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
+ baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`,
10
11
 
11
12
  specs: [
12
13
  path.resolve(__dirname, "clear.spec.js"),
@@ -1,6 +1,7 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/sauce.labs.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  user: "3549e2d146bbf4a502afd06a071f4b0217da2e7015788135765fc3187eb2290fcdbf352518a423948698eefb17ba62dcad1403855ae7a215d0664d7ec05f5c847ea38b6e1cccdd21c5b0d86ed664ef88a7de6f4fe8fbb716db83000a102a5d753d9a43d491160c1e3206a5dcc31ef4a074a1da1e39d6f16613282f548bbe9a61baf33668e88c1443951b2f6dd8d51bfb81b81a80428b5c53197606095946deebca98b20960cc85cd31a5cf9a278d62d867dd602d59754442b8b8a8294307b374c807afc50c45f742d2e9b67a8248992a73abb07e4c271b647ccdb55db5925fa4e81b35fbc4db19eec1fd2410439ba7af5417a9c691faec3e807aba6a17e5f26fb5da8c18a519276dea9ead247c544a65696642c5d7a86dad63895f781a115434eb6626594078412d62ead47887dd0190b224a593a81f27a37d28124c3d6b94d0c17055c304a8de72841672f861693ae89fde4cff5cd6e118cbc0fd749f95f1ae",
@@ -10,7 +11,7 @@ exports.config = merge(profile.config, {
10
11
  maxInstances: 2, // note: for the SAP account, only 5 parallel instances is a max value
11
12
 
12
13
  bail: 1,
13
- baseUrl: "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
14
+ baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`,
14
15
 
15
16
  specs: [
16
17
  path.resolve(__dirname, "clear.spec.js"),
@@ -1,3 +1,4 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
1
2
  const { handleCookiesConsent } = require("../../../helper/utils");
2
3
 
3
4
  describe("userInteraction - uncheck - checkbox (checked)", function () {
@@ -10,7 +11,7 @@ describe("userInteraction - uncheck - checkbox (checked)", function () {
10
11
  };
11
12
 
12
13
  it("Preparation", async function () {
13
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
14
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox`);
14
15
  await handleCookiesConsent();
15
16
  await util.browser.switchToIframe("[id='sampleFrame']");
16
17
  });
@@ -34,7 +35,7 @@ describe("userInteraction - uncheck - checkbox (unchecked)", function () {
34
35
  };
35
36
 
36
37
  it("Preparation", async function () {
37
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
38
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox`);
38
39
  await handleCookiesConsent();
39
40
  await util.browser.switchToIframe("[id='sampleFrame']");
40
41
  });
@@ -58,7 +59,7 @@ describe("userInteraction - uncheck - checkbox (error)", function () {
58
59
  };
59
60
 
60
61
  it("Preparation", async function () {
61
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
62
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox`);
62
63
  await handleCookiesConsent();
63
64
  await util.browser.switchToIframe("[id='sampleFrame']");
64
65
  });
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  const browser = require("../../../../lib/reuse/modules/util/browser");
4
5
  const {
@@ -7,7 +8,7 @@ const {
7
8
 
8
9
  describe("browser - back", function () {
9
10
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
11
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
11
12
  await handleCookiesConsent();
12
13
  const selector = {
13
14
  "elementProperties": {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  const browser = require("../../../../lib/reuse/modules/util/browser");
4
5
  const { handleCookiesConsent } = require("../../../helper/utils");
5
6
 
6
7
  describe("browser - forward", function () {
7
8
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
9
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
9
10
  await handleCookiesConsent();
10
11
  const selector = {
11
12
  elementProperties: {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("browser - getBaseUrl", function () {
4
5
  let baseUrl;
@@ -7,7 +8,7 @@ describe("browser - getBaseUrl", function () {
7
8
  });
8
9
 
9
10
  it("Verification", () => {
10
- const expectedUrl = "https://sapui5.hana.ondemand.com/";
11
+ const expectedUrl = `${BASE_URL}/`;
11
12
  common.assertion.expectEqual(baseUrl, expectedUrl);
12
13
  });
13
14
  });
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("browser - getCurrentWindow", function () {
4
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
5
+ const sapWindowUrl = `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`;
5
6
  let sapWindowHandleNative;
6
7
  let sapWindowHandleCustom;
7
8
 
@@ -20,7 +21,7 @@ describe("browser - getCurrentWindow", function () {
20
21
  });
21
22
 
22
23
  describe("browser - getCurrentWindow (unhappy case)", function () {
23
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
24
+ const sapWindowUrl = `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`;
24
25
  let sapWindowHandleCustom;
25
26
 
26
27
  const wdioWindowUrl = "https://webdriver.io/";
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("browser - setBaseUrl", function () {
4
- const urlToSet = "https://sapui5.hana.ondemand.com/";
5
+ const urlToSet = `${BASE_URL}/`;
5
6
  it("Execution", async function () {
6
- await util.browser.setBaseUrl("https://sapui5.hana.ondemand.com/");
7
+ await util.browser.setBaseUrl(`${BASE_URL}/`);
7
8
  });
8
9
 
9
10
  it("Verification", async function() {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  const { handleCookiesConsent } = require("../../../helper/utils");
3
4
 
4
5
  describe("browser - switchToDefaultContent", function () {
@@ -13,7 +14,7 @@ describe("browser - switchToDefaultContent", function () {
13
14
 
14
15
  it("Preparation", async function () {
15
16
  //keep latest demo kit version due to iframes here
16
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog");
17
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog`);
17
18
  await handleCookiesConsent();
18
19
  await util.browser.switchToIframe("[id='sampleFrame']");
19
20
  });
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  const { handleCookiesConsent } = require("../../../helper/utils");
3
4
 
4
5
  describe("browser - switchToIframe", function () {
@@ -6,7 +7,7 @@ describe("browser - switchToIframe", function () {
6
7
 
7
8
  it("Preparation", async function () {
8
9
  //keep latest demo kit version due to iframes here
9
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog");
10
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog`);
10
11
  await handleCookiesConsent();
11
12
  });
12
13
 
@@ -19,7 +20,7 @@ describe("browser - switchToIframe", function () {
19
20
 
20
21
  describe("browser - switchToIframe - error case", function () {
21
22
  it("Preparation", async function () {
22
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.suite.ui.commons.imageeditor/sample/sap.suite.ui.commons.sample.ImageEditorContainer");
23
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.suite.ui.commons.imageeditor/sample/sap.suite.ui.commons.sample.ImageEditorContainer`);
23
24
  await handleCookiesConsent();
24
25
  });
25
26
 
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("browser - switchToWindow", function () {
4
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
5
+ const sapWindowUrl = `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`;
5
6
  let sapWindowHandle;
6
7
  const wdioWindowUrl = "https://webdriver.io/";
7
8
  let wdioWindowHandle;
@@ -40,7 +41,7 @@ describe("browser - switchToWindow", function () {
40
41
  });
41
42
 
42
43
  describe("browser - switchToWindow (unhappy case)", function () {
43
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
44
+ const sapWindowUrl = `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`;
44
45
 
45
46
  it("Preparation", async function () {
46
47
  await common.navigation.navigateToUrl(sapWindowUrl);
@@ -1,11 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
5
+
4
6
  exports.config = merge(profile.config, {
5
7
  maxInstances: 1,
6
8
  specFileRetries: 0,
7
9
 
8
- baseUrl: "https://sapui5.hana.ondemand.com/",
10
+ baseUrl: `${BASE_URL}/`,
9
11
 
10
12
  specs: [
11
13
  path.resolve(__dirname, "logCurrentUrl.spec.js"),
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 4,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/",
10
+ baseUrl: `${BASE_URL}/`,
10
11
 
11
12
  params: {
12
13
  import: {
@@ -1,10 +1,11 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const qmateConfiguration = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
  exports.config = merge(qmateConfiguration.config, {
5
6
  maxInstances: 1,
6
7
 
7
- baseUrl: "https://sapui5.hana.ondemand.com",
8
+ baseUrl: BASE_URL,
8
9
 
9
10
  specs: [
10
11
  path.resolve(__dirname, "console.spec.js"),
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 6,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/",
10
+ baseUrl: `${BASE_URL}/`,
10
11
 
11
12
  params: {
12
13
  import: {
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 6,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/",
10
+ baseUrl: `${BASE_URL}/`,
10
11
 
11
12
  params: {
12
13
  import: {
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 6,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection",
10
+ baseUrl: `${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`,
10
11
 
11
12
  specs: [
12
13
  path.resolve(__dirname, "pdfParser.spec.js"),
@@ -1,4 +1,5 @@
1
1
  const path = require("path");
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  const { handleCookiesConsent } = require("../../../helper/utils");
3
4
 
4
5
  const selectorTest = {
@@ -48,7 +49,7 @@ describe("file - upload - default selector", function () {
48
49
  describe("file - upload - custom selector - UI5", function () {
49
50
 
50
51
  it("Preparation", async function () {
51
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection");
52
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`);
52
53
  await util.browser.refresh();
53
54
  await handleCookiesConsent();
54
55
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -74,7 +75,7 @@ describe("file - upload - custom selector - UI5", function () {
74
75
  describe("file - upload - custom selector - non UI5", function () {
75
76
 
76
77
  it("Preparation", async function () {
77
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection");
78
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection`);
78
79
  await util.browser.refresh();
79
80
  await handleCookiesConsent();
80
81
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -1,12 +1,13 @@
1
1
  const path = require("path");
2
2
  const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
4
5
 
5
6
  exports.config = merge(profile.config, {
6
7
  maxInstances: 6,
7
8
  specFileRetries: 2,
8
9
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/",
10
+ baseUrl: `${BASE_URL}/`,
10
11
 
11
12
  specs: [
12
13
  path.resolve(__dirname, "addRemoveLeadingZeros.spec.js"),