@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,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");
@@ -8,7 +9,7 @@ describe("element - getByCss + expectToBeVisible", function () {
8
9
  let downloadBtn;
9
10
 
10
11
  it("Preparation", async function () {
11
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
12
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
12
13
  await handleCookiesConsent();
13
14
  });
14
15
 
@@ -24,7 +25,7 @@ describe("element - getByCss + expectToBeVisible", function () {
24
25
  describe("element - getByCss outside of viewpoint", function () {
25
26
  let comboBoxElement;
26
27
  it("Preparation", async function () {
27
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
28
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
28
29
  await util.browser.refresh(); // Need a refresh here as sapui5.hana.ondemand.com doesn't work correctly from time to time
29
30
  await handleCookiesConsent();
30
31
  await util.browser.switchToIframe("[id='sampleFrame']");
@@ -55,7 +56,7 @@ describe("element - getByCss outside of viewpoint", function () {
55
56
  describe("element - getByCss and catch error", function () {
56
57
 
57
58
  it("Preparation", async function () {
58
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
59
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
59
60
  await handleCookiesConsent();
60
61
  });
61
62
 
@@ -1,11 +1,12 @@
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("element - getByCssContainingText - non strict", function () {
5
6
  let downloadBtn;
6
7
 
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
  });
11
12
 
@@ -24,7 +25,7 @@ describe("element - getByCssContainingText - strict", function () {
24
25
  let downloadBtn;
25
26
 
26
27
  it("Preparation", async function () {
27
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
28
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
28
29
  await handleCookiesConsent();
29
30
  });
30
31
 
@@ -41,7 +42,7 @@ describe("element - getByCssContainingText - strict", function () {
41
42
 
42
43
  describe("element - getByCssContainingText - strict error case", function () {
43
44
  it("Preparation", async function () {
44
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
45
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
45
46
  await handleCookiesConsent();
46
47
  });
47
48
 
@@ -54,7 +55,7 @@ describe("element - getByCssContainingText - strict error case", function () {
54
55
 
55
56
  describe("element - getByCssContainingText - error case", function () {
56
57
  it("Preparation", async function () {
57
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
58
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
58
59
  await handleCookiesConsent();
59
60
  });
60
61
 
@@ -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");
@@ -8,7 +9,7 @@ describe("element - getById + expectToBeVisible", function () {
8
9
  let downloadBtn;
9
10
 
10
11
  it("Preparation", async function () {
11
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
12
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
12
13
  await handleCookiesConsent();
13
14
  });
14
15
 
@@ -24,7 +25,7 @@ describe("element - getById + expectToBeVisible", function () {
24
25
  describe("element - getById and catch error", function () {
25
26
 
26
27
  it("Preparation", async function () {
27
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
28
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
28
29
  await handleCookiesConsent();
29
30
  });
30
31
 
@@ -37,7 +38,7 @@ describe("element - getById and catch error", function () {
37
38
  describe("element - getById - error case, verify error stack", function () {
38
39
 
39
40
  it("Preparation", async function () {
40
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
41
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
41
42
  await handleCookiesConsent();
42
43
  });
43
44
 
@@ -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("element - getByParent", function () {
@@ -6,7 +7,7 @@ describe("element - getByParent", function () {
6
7
 
7
8
  it("Preparation", async function () {
8
9
  await common.navigation.navigateToUrl(
9
- "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories"
10
+ `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`
10
11
  );
11
12
  await handleCookiesConsent();
12
13
  });
@@ -26,7 +27,7 @@ describe("element - getByParent - with index", function () {
26
27
  let elemAct;
27
28
 
28
29
  it("Preparation", async function () {
29
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Tree/sample/sap.m.sample.TreeExpandMulti");
30
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Tree/sample/sap.m.sample.TreeExpandMulti`);
30
31
  await handleCookiesConsent();
31
32
  await util.browser.switchToIframe("[id='sampleFrame']");
32
33
  });
@@ -47,7 +48,7 @@ describe("element - getByParent - with index", function () {
47
48
  describe("element - getByParent - error case with wrong element", function () {
48
49
  it("Preparation", async function () {
49
50
  await common.navigation.navigateToUrl(
50
- "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories"
51
+ `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`
51
52
  );
52
53
  });
53
54
 
@@ -63,7 +64,7 @@ describe("element - getByParent - error case with wrong element", function () {
63
64
  describe("element - getByParent - error case with wrong order of parent and child", function () {
64
65
  it("Preparation", async function () {
65
66
  await common.navigation.navigateToUrl(
66
- "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories"
67
+ `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`
67
68
  );
68
69
  });
69
70
 
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("element - getByXPath + expectToBeVisible", function () {
4
5
 
5
6
  let searchInput;
6
7
 
7
8
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
9
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
9
10
  });
10
11
 
11
12
  it("Execution", async function () {
@@ -20,7 +21,7 @@ describe("element - getByXPath + expectToBeVisible", function () {
20
21
  describe("element - getByXPath and catch error", function () {
21
22
 
22
23
  it("Preparation", async function () {
23
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
24
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
24
25
  });
25
26
 
26
27
  it("Execution & Verification", async function () {
@@ -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");
@@ -11,7 +12,7 @@ describe("element - getCssPropertyValue - element", function () {
11
12
  let valueAct;
12
13
 
13
14
  it("Preparation", async function () {
14
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
15
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
15
16
  await handleCookiesConsent();
16
17
  });
17
18
 
@@ -29,7 +30,7 @@ describe("element - getCssPropertyValue - selector", function () {
29
30
  let valueAct;
30
31
 
31
32
  it("Preparation", async function () {
32
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
33
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
33
34
  await handleCookiesConsent();
34
35
  });
35
36
 
@@ -45,7 +46,7 @@ describe("element - getCssPropertyValue - selector", function () {
45
46
  describe("element - getCssPropertyValue - error", function () {
46
47
 
47
48
  it("Preparation", async function () {
48
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
49
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
49
50
  });
50
51
 
51
52
  it("Execution & Verification", async function () {
@@ -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");
@@ -7,7 +8,7 @@ describe("element - getValue", function () {
7
8
  let actValue;
8
9
 
9
10
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
11
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
11
12
  await handleCookiesConsent();
12
13
  });
13
14
 
@@ -25,7 +26,7 @@ describe("element - getValue - innerHTML", function () {
25
26
  let actValue;
26
27
 
27
28
  it("Preparation", async function () {
28
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
29
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
29
30
  });
30
31
 
31
32
  it("Execution", async function () {
@@ -41,7 +42,7 @@ describe("element - getValue - innerHTML", function () {
41
42
 
42
43
  describe("element - getValue - error case", function () {
43
44
  it("Preparation", async function () {
44
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
45
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
45
46
  });
46
47
 
47
48
  it("Execution & Verification", async function () {
@@ -1,9 +1,11 @@
1
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
+
1
3
  describe("element - highlight", function () {
2
4
 
3
5
  let product;
4
6
 
5
7
  it("Preparation", async function () {
6
- await browser.navigateTo("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
8
+ await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
7
9
 
8
10
  });
9
11
 
@@ -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
  const enabledSelector = "input#__xmlview0--InputEdit-inner";
@@ -6,7 +7,7 @@ const disabledSelector = "input#__xmlview0--InputDisabled-inner";
6
7
 
7
8
  describe("element - isEnabled - enabled element", function () {
8
9
  it("Preparation", async function () {
9
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputStates");
10
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputStates`);
10
11
  await handleCookiesConsent();
11
12
  await util.browser.switchToIframe("iframe[id='sampleFrame']");
12
13
  });
@@ -20,7 +21,7 @@ describe("element - isEnabled - enabled element", function () {
20
21
 
21
22
  describe("element - isEnabled - disabled element", function () {
22
23
  it("Preparation", async function () {
23
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputStates");
24
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputStates`);
24
25
  await handleCookiesConsent();
25
26
  await util.browser.switchToIframe("iframe[id='sampleFrame']");
26
27
  });
@@ -36,7 +37,7 @@ const errorRegexp = /Expected.*true.*|Received.*false/;
36
37
 
37
38
  describe("element - isEnabled - element - error", function () {
38
39
  it("Preparation", async function () {
39
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputStates");
40
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputStates`);
40
41
  await handleCookiesConsent();
41
42
  await util.browser.switchToIframe("iframe[id='sampleFrame']");
42
43
  });
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
3
+
2
4
  // describe("element - isPresent - list item element", function () {
3
5
  // it("Preparation", async function () {
4
- // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
6
+ // await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
5
7
  // });
6
8
 
7
9
  // it("Execution & Verification", async function () {
@@ -14,7 +16,7 @@
14
16
 
15
17
  describe("element - isPresent - hidden element", function () {
16
18
  it("Preparation", async function () {
17
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
19
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
18
20
  });
19
21
 
20
22
  it("Execution & Verification", async function () {
@@ -29,7 +31,7 @@ describe("element - isPresent - hidden element", function () {
29
31
 
30
32
  // describe("element - isPresent - wrong element", function () {
31
33
  // it("Preparation", async function () {
32
- // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
34
+ // await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
33
35
  // });
34
36
 
35
37
  // it("Execution & Verification", async function () {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  describe("element - isPresentByCss (id)", function () {
4
5
  it("Preparation", async function () {
@@ -52,7 +53,7 @@ describe("element - isPresentByCss with wrong selector/hidden element and catch
52
53
 
53
54
  describe("element - isPresent (by class) for list item element", function () {
54
55
  it("Preparation", async function () {
55
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
56
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
56
57
  });
57
58
 
58
59
  it("Execution & Verification", async function () {
@@ -63,7 +64,7 @@ describe("element - isPresent (by class) for list item element", function () {
63
64
 
64
65
  describe("element - isPresent (by class) for hidden element", function () {
65
66
  it("Preparation", async function () {
66
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
67
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
67
68
  });
68
69
 
69
70
  it("Execution & Verification", async function () {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
 
3
4
  const { handleCookiesConsent } = require("../../../helper/utils");
4
5
 
@@ -7,7 +8,7 @@ describe("element - isPresentByXPath", function () {
7
8
  let linkBtn;
8
9
 
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
  });
13
14
 
@@ -20,7 +21,7 @@ describe("element - isPresentByXPath", function () {
20
21
 
21
22
  describe("element - isPresentByXPath with wrong selector and catch error", function () {
22
23
  it("Preparation", async function () {
23
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
24
+ await common.navigation.navigateToUrl(`${BASE_URL}/`);
24
25
  await handleCookiesConsent();
25
26
  });
26
27
 
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
-
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
3
3
  const {
4
4
  handleCookiesConsent
5
5
  } = require("../../../helper/utils");
@@ -7,7 +7,7 @@ const {
7
7
  describe("element - getById + expectToBeVisible", function () {
8
8
 
9
9
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
10
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
11
11
  await handleCookiesConsent();
12
12
  });
13
13
 
@@ -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/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, "waitToBePresent.spec.js"),
@@ -1,6 +1,8 @@
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");
5
+
4
6
  exports.config = merge(profile.config, {
5
7
  user: "3549e2d146bbf4a502afd06a071f4b0217da2e7015788135765fc3187eb2290fcdbf352518a423948698eefb17ba62dcad1403855ae7a215d0664d7ec05f5c847ea38b6e1cccdd21c5b0d86ed664ef88a7de6f4fe8fbb716db83000a102a5d753d9a43d491160c1e3206a5dcc31ef4a074a1da1e39d6f16613282f548bbe9a61baf33668e88c1443951b2f6dd8d51bfb81b81a80428b5c53197606095946deebca98b20960cc85cd31a5cf9a278d62d867dd602d59754442b8b8a8294307b374c807afc50c45f742d2e9b67a8248992a73abb07e4c271b647ccdb55db5925fa4e81b35fbc4db19eec1fd2410439ba7af5417a9c691faec3e807aba6a17e5f26fb5da8c18a519276dea9ead247c544a65696642c5d7a86dad63895f781a115434eb6626594078412d62ead47887dd0190b224a593a81f27a37d28124c3d6b94d0c17055c304a8de72841672f861693ae89fde4cff5cd6e118cbc0fd749f95f1ae",
6
8
  key: "f327bbae23d6881304a675ab9e1547ba9656a3a848f0d95646ae10c2a58814c510af03b80d7d08ffe4019d4b86c681ee09d23c38d97555165ad9f175e70afcb2d738e1d532742f9892325e7ae4400f72559db30c03c64d8dda376c057d4bdd60e7b4f44cc19647083d408772c2cef509826bee963fe1a833ae234e827555050729ef69a63931e1bf0f99e8160dbe62082b393f05e4f1d6089a19b0978b58e17ddfe617fb3f01478681d79a795026cc661d0289d99d06a86692f68817a158282b724166fb93c46ea1870bb3a85ec909b7f117bd6a22bdc70e53b61285d9c9680a55f9750ce9cf7c1dd57b22db91f19dda0ba68ed53de0c2acfb0b71ce0ad6ab8432b35c8f7d86de128c2b0759e90c8efe7ea949ef2d3dd75eb4277782cf71817c4b312cd36765496e04c7194a452e144195e073c625ba8a6c7c0bbe315f3f273bac427b26d6fc062513a0db55ca118bac194f2b90fb930b9b32135d52d8790525",
@@ -8,7 +10,7 @@ exports.config = merge(profile.config, {
8
10
 
9
11
  maxInstances: 5,
10
12
  bail: 1,
11
- baseUrl: "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
13
+ baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`,
12
14
 
13
15
  specs: [
14
16
  path.resolve(__dirname, "waitToBePresent.spec.js"),
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
-
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
3
3
  const { handleCookiesConsent } = require("../../../helper/utils");
4
4
 
5
5
  describe("userInteraction - clickElementInSvg - UI5 SVG Chart", function () {
6
6
 
7
7
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.suite.ui.commons.ChartContainer/sample/sap.suite.ui.commons.sample.ChartContainerToolbarEnhancement");
8
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.suite.ui.commons.ChartContainer/sample/sap.suite.ui.commons.sample.ChartContainerToolbarEnhancement`);
9
9
  await handleCookiesConsent();
10
10
  await util.browser.sleep(5000);
11
11
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
-
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
3
3
  const { handleCookiesConsent } = require("../../../helper/utils");
4
4
 
5
5
  describe("userInteraction - Double click on Switch button", async function () {
6
6
  it("Preparation", async function () {
7
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Select/sample/sap.m.sample.Select");
7
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Select/sample/sap.m.sample.Select`);
8
8
  await handleCookiesConsent();
9
9
  await util.browser.switchToIframe("[id='sampleFrame']");
10
10
  });
@@ -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 - moveCursorAndClick - chart tests", function () {
4
5
  it("Preparation", async function () {
5
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.viz.ui5.controls.VizFrame/sample/sap.viz.sample.Donut");
6
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.viz.ui5.controls.VizFrame/sample/sap.viz.sample.Donut`);
6
7
  await handleCookiesConsent();
7
8
  await util.browser.switchToIframe("[id='sampleFrame']");
8
9
  });
@@ -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 - rightClick", async function () {
4
5
  it("Preparation", async function () {
5
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.TextArea/sample/sap.m.sample.TextArea");
6
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.TextArea/sample/sap.m.sample.TextArea`);
6
7
  await handleCookiesConsent();
7
8
  await util.browser.switchToIframe("[id='sampleFrame']");
8
9
  });
@@ -1,11 +1,12 @@
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("userInteraction - scrollToElement - default alignment options", function () {
5
6
  let elem;
6
7
 
7
8
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/api");
9
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/api`);
9
10
  await handleCookiesConsent();
10
11
  });
11
12
 
@@ -25,7 +26,7 @@ describe("userInteraction - scrollToElement - alignment is center", function ()
25
26
  let elem, alignment;
26
27
 
27
28
  it("Preparation", async function () {
28
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/api");
29
+ await common.navigation.navigateToUrl(`${BASE_URL}/#/api`);
29
30
  await handleCookiesConsent();
30
31
  await browser.setWindowSize(1200, 800);
31
32
  });
@@ -45,7 +46,7 @@ describe("userInteraction - scrollToElement - alignment is center", function ()
45
46
 
46
47
  describe("locator - scrollToElement - wrong element (error case)", function () {
47
48
  it("Preparation", async function () {
48
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
49
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
49
50
  await handleCookiesConsent();
50
51
  });
51
52
 
@@ -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
  const selector = {
@@ -14,7 +15,7 @@ const timeout = 30000;
14
15
 
15
16
  describe("assertion - expectCssPropertyValueToBe", function () {
16
17
  it("Preparation", async function () {
17
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
18
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
18
19
  await handleCookiesConsent();
19
20
  });
20
21
 
@@ -26,7 +27,7 @@ describe("assertion - expectCssPropertyValueToBe", function () {
26
27
 
27
28
  describe("assertion - expectCssPropertyValueToBe - error", function () {
28
29
  it("Preparation", async function () {
29
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
30
+ await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
30
31
  await handleCookiesConsent();
31
32
  });
32
33
 
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  const {
3
4
  handleCookiesConsent
4
5
  } = require("../../../helper/utils");
5
6
 
6
7
  describe("assertion - expectMessageToastTextToBe - no message toast (unhappy case)", function () {
7
8
  it("Preparation", async function () {
8
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.MessageToast/sample/sap.m.sample.MessageToast");
9
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.MessageToast/sample/sap.m.sample.MessageToast`);
9
10
  await handleCookiesConsent();
10
11
  await util.browser.switchToIframe("[id='sampleFrame']");
11
12
  });
@@ -20,7 +21,7 @@ describe("assertion - expectMessageToastTextToBe - no message toast (unhappy cas
20
21
 
21
22
  describe("assertion - expectMessageToastTextToBe", function () {
22
23
  it("Preparation", async function () {
23
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.MessageToast/sample/sap.m.sample.MessageToast");
24
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.MessageToast/sample/sap.m.sample.MessageToast`);
24
25
  await handleCookiesConsent();
25
26
  await util.browser.switchToIframe("[id='sampleFrame']");
26
27
  });
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  let selector;
3
4
  const {
4
5
  handleCookiesConsent
@@ -49,7 +50,7 @@ describe("assertion - expectToBeVisible with wrong selector", function () {
49
50
 
50
51
  describe("assertion - expectToBeVisible outside viewport", function () {
51
52
  it("Preparation", async function () {
52
- await browser.url("https://sapui5.hana.ondemand.com/");
53
+ await browser.url(`${BASE_URL}/`);
53
54
  await handleCookiesConsent();
54
55
  });
55
56
 
@@ -1,4 +1,5 @@
1
1
  "user strict";
2
+ const { BASE_URL } = require("../../../../src/reuse/constants.ts");
2
3
  let selector;
3
4
  const {
4
5
  handleCookiesConsent
@@ -28,7 +29,7 @@ describe("assertion - expectToBeVisibleInViewport with element in viewport", fun
28
29
 
29
30
  describe("assertion - expectToBeVisibleInViewport with element outside viewport (unhappy case)", function () {
30
31
  it("Preparation", async function () {
31
- await browser.url("https://sapui5.hana.ondemand.com/");
32
+ await browser.url(`${BASE_URL}/`);
32
33
  await handleCookiesConsent();
33
34
  });
34
35
 
@@ -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");
@@ -23,7 +24,7 @@ const inputFieldWithCheckSelector = {
23
24
 
24
25
  describe("Expect input field 'valueState' not to be 'Error' (unhappy case)", function () {
25
26
  it("Preparation", async function () {
26
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked");
27
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked`);
27
28
  await handleCookiesConsent();
28
29
  await util.browser.switchToIframe("[id='sampleFrame']");
29
30
  });
@@ -39,7 +40,7 @@ describe("Expect input field 'valueState' not to be 'Error' (unhappy case)", fun
39
40
 
40
41
  describe("Expect input field 'valueState' to be 'Error'", function () {
41
42
  it("Preparation", async function () {
42
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked");
43
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked`);
43
44
  await handleCookiesConsent();
44
45
  await util.browser.switchToIframe("[id='sampleFrame']");
45
46
  });
@@ -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");
@@ -23,7 +24,7 @@ const inputFieldWithCheckSelector = {
23
24
 
24
25
  describe("Expect input field 'valueState' to be 'None' (success)", function () {
25
26
  it("Preparation", async function () {
26
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked");
27
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked`);
27
28
  await handleCookiesConsent();
28
29
  await util.browser.switchToIframe("[id='sampleFrame']");
29
30
  });
@@ -38,7 +39,7 @@ describe("Expect input field 'valueState' to be 'None' (success)", function () {
38
39
 
39
40
  describe("Expect input field 'valueState' not to be 'None' (unhappy case)", function () {
40
41
  it("Preparation", async function () {
41
- await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked");
42
+ await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputChecked`);
42
43
  await handleCookiesConsent();
43
44
  await util.browser.switchToIframe("[id='sampleFrame']");
44
45
  });