@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.
- package/docs/doc.md +2 -2
- package/docs/sections/features/selectors.md +1 -1
- package/lib/reuse/constants.d.ts +1 -0
- package/lib/reuse/constants.js +5 -0
- package/lib/reuse/constants.js.map +1 -0
- package/lib/reuse/modules/ui5/mockserver.d.ts +2 -2
- package/lib/reuse/modules/ui5/mockserver.js +2 -2
- package/lib/reuse/modules/ui5/userInteraction.d.ts +3 -5
- package/lib/reuse/modules/ui5/userInteraction.js +40 -68
- package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
- package/package.json +2 -2
- package/reuseApi.json +1 -1
- package/test/core/functional/chaining/test.conf.js +3 -1
- package/test/core/functional/locators/ancestorProperties.test.js +4 -3
- package/test/core/functional/locators/childProperties.test.js +2 -1
- package/test/core/functional/locators/descendantProperties.test.js +3 -2
- package/test/core/functional/locators/parentProperties.test.js +2 -1
- package/test/core/functional/locators/test.locator.conf.js +2 -1
- package/test/core/functional/nativeBrowser/runInBrowser.test.js +3 -1
- package/test/core/functional/nativeBrowser/test.conf.js +2 -1
- package/test/core/functional/nonUi5/test.conf.js +2 -1
- package/test/core/functional/ui5Properties/getAggregations.test.js +4 -3
- package/test/core/functional/ui5Properties/getProperties.test.js +5 -4
- package/test/core/functional/ui5Properties/test.conf.js +2 -1
- package/test/core/functional/uiveri5/test.conf.js +2 -1
- package/test/core/testIntegration/config.js +2 -1
- package/test/core/testIntegration/configMultiCombo.js +2 -1
- package/test/core/testIntegration/configTable.js +2 -1
- package/test/reuse/common/assertion/test.assertion.conf.js +2 -1
- package/test/reuse/common/navigation/navigateToUrl.spec.js +3 -1
- package/test/reuse/common/navigation/navigateToUrlAndRetry.spec.js +3 -1
- package/test/reuse/common/userInteraction/clearAndFillActive.spec.js +4 -3
- package/test/reuse/common/userInteraction/clearAndFillActiveAndRetry.spec.js +4 -3
- package/test/reuse/common/userInteraction/fillActive.spec.js +7 -6
- package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +5 -4
- package/test/reuse/common/userInteraction/pressKey.spec.js +2 -1
- package/test/reuse/nonUi5/assertion/expectCssPropertyValueToBe.spec.js +5 -4
- package/test/reuse/nonUi5/assertion/expectTextToBe.spec.js +5 -4
- package/test/reuse/nonUi5/assertion/expectToBeVisible.spec.js +2 -1
- package/test/reuse/nonUi5/assertion/expectValueToBe.spec.js +3 -2
- package/test/reuse/nonUi5/assertion/test.assertion.conf.js +2 -1
- package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +3 -1
- package/test/reuse/nonUi5/element/getAttributeValue.spec.js +4 -3
- package/test/reuse/nonUi5/element/getByChild.spec.js +5 -4
- package/test/reuse/nonUi5/element/getByClass.spec.js +5 -4
- package/test/reuse/nonUi5/element/getByCss.spec.js +4 -3
- package/test/reuse/nonUi5/element/getByCssContainingText.spec.js +5 -4
- package/test/reuse/nonUi5/element/getById.spec.js +4 -3
- package/test/reuse/nonUi5/element/getByParent.spec.js +5 -4
- package/test/reuse/nonUi5/element/getByXPath.spec.js +3 -2
- package/test/reuse/nonUi5/element/getCssPropertyValue.spec.js +4 -3
- package/test/reuse/nonUi5/element/getValue.spec.js +4 -3
- package/test/reuse/nonUi5/element/highlight.spec.js +3 -1
- package/test/reuse/nonUi5/element/isEnabled.spec.js +4 -3
- package/test/reuse/nonUi5/element/isPresent.spec.js +5 -3
- package/test/reuse/nonUi5/element/isPresentByCss.spec.js +3 -2
- package/test/reuse/nonUi5/element/isPresentByXPath.spec.js +3 -2
- package/test/reuse/nonUi5/element/setInnerHTML.spec.js +2 -2
- package/test/reuse/nonUi5/element/test.element.conf.js +2 -1
- package/test/reuse/nonUi5/element/test.element.sauceLabs.conf.js +3 -1
- package/test/reuse/nonUi5/userInteraction/clickElementInSvg.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/doubleClick.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/moveCursorAndClick.spec.js +2 -1
- package/test/reuse/nonUi5/userInteraction/rightClick.spec.js +2 -1
- package/test/reuse/nonUi5/userInteraction/scrollToElement.spec.js +4 -3
- package/test/reuse/ui5/assertion/expectCssPropertyValueToBe.spec.js +3 -2
- package/test/reuse/ui5/assertion/expectMessageToastTextToBe.spec.js +3 -2
- package/test/reuse/ui5/assertion/expectToBeVisible.spec.js +2 -1
- package/test/reuse/ui5/assertion/expectToBeVisibleInViewport.spec.js +2 -1
- package/test/reuse/ui5/assertion/expectValidationError.spec.js +3 -2
- package/test/reuse/ui5/assertion/expectValidationSuccess.spec.js +3 -2
- package/test/reuse/ui5/assertion/expectValueToBeDefined.spec.js +2 -1
- package/test/reuse/ui5/assertion/test.assertion.conf.js +2 -1
- package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +3 -1
- package/test/reuse/ui5/confirmationDialog/clickButton.spec.js +3 -2
- package/test/reuse/ui5/confirmationDialog/clickNo.spec.js +3 -2
- package/test/reuse/ui5/confirmationDialog/clickOk.spec.js +2 -1
- package/test/reuse/ui5/confirmationDialog/clickYes.spec.js +2 -1
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.conf.js +2 -1
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +3 -1
- package/test/reuse/ui5/control/focus.spec.js +5 -4
- package/test/reuse/ui5/control/getAggregationProperty.spec.js +3 -2
- package/test/reuse/ui5/control/getAssociationProperty.spec.js +3 -2
- package/test/reuse/ui5/control/test.control.conf.js +2 -1
- package/test/reuse/ui5/control/test.control.sauceLab.conf.js +2 -1
- package/test/reuse/ui5/date/fillRange.spec.js +3 -2
- package/test/reuse/ui5/date/pick.spec.js +5 -4
- package/test/reuse/ui5/date/pickRange.spec.js +5 -4
- package/test/reuse/ui5/date/pickWithTime.spec.js +2 -1
- package/test/reuse/ui5/element/getByChild.spec.js +4 -4
- package/test/reuse/ui5/element/getByParent.spec.js +4 -4
- package/test/reuse/ui5/element/getByText.spec.js +2 -1
- package/test/reuse/ui5/element/getCssPropertyValue.spec.js +3 -2
- package/test/reuse/ui5/element/getPropertyValue.spec.js +2 -1
- package/test/reuse/ui5/element/test.element.conf.js +3 -1
- package/test/reuse/ui5/element/test.element.sauceLab.conf.js +2 -1
- package/test/reuse/ui5/element/waitForAll.spec.js +3 -2
- package/test/reuse/ui5/errorDialog/clickClose.spec.js +2 -1
- package/test/reuse/ui5/errorDialog/expectToBeVisible.spec.js +2 -1
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServer.html +2 -2
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServerAllData.html +2 -2
- package/test/reuse/ui5/mockserver_qunit/test/unit/unitTests.qunit.html +1 -1
- package/test/reuse/ui5/navigationBar/clickSapLogo.spec.js +2 -1
- package/test/reuse/ui5/navigationBar/test.navigationBar.conf.js +2 -1
- package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +2 -1
- package/test/reuse/ui5/session/logout.spec.js +2 -2
- package/test/reuse/ui5/table/clickSettingsButton.spec.js +3 -2
- package/test/reuse/ui5/table/deselectAllRows.spec.js +4 -3
- package/test/reuse/ui5/table/deselectRowByIndex.spec.js +4 -3
- package/test/reuse/ui5/table/getAllColumnValuesByName.spec.js +2 -1
- package/test/reuse/ui5/table/getRowSelectorByIndex.spec.js +2 -1
- package/test/reuse/ui5/table/getSelectorForRowByIndex.spec.js +6 -5
- package/test/reuse/ui5/table/getSelectorsForRowsByValues.spec.js +7 -6
- package/test/reuse/ui5/table/getTotalNumberOfRows.spec.js +4 -3
- package/test/reuse/ui5/table/getTotalNumberOfRowsByValues.spec.js +6 -5
- package/test/reuse/ui5/table/openItemByIndex.spec.js +4 -3
- package/test/reuse/ui5/table/openItemByValues.spec.js +4 -3
- package/test/reuse/ui5/table/selectAllRows.spec.js +4 -3
- package/test/reuse/ui5/table/selectRowByIndex.spec.js +4 -3
- package/test/reuse/ui5/table/selectRowByValues.spec.js +5 -4
- package/test/reuse/ui5/table/sortColumnAscending.spec.js +4 -3
- package/test/reuse/ui5/table/sortColumnDescending.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/check.spec.js +4 -3
- package/test/reuse/ui5/userInteraction/clear.spec.js +4 -3
- package/test/reuse/ui5/userInteraction/clearAndFill.spec.js +7 -6
- package/test/reuse/ui5/userInteraction/clearAndFillAndRetry.spec.js +6 -5
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInput.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInputAndRetry.spec.js +2 -1
- package/test/reuse/ui5/userInteraction/clearAndRetry.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/click.spec.js +7 -6
- package/test/reuse/ui5/userInteraction/clickAndRetry.spec.js +4 -3
- package/test/reuse/ui5/userInteraction/clickSelectArrow.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/clickSelectArrowAndRetry.spec.js +4 -3
- package/test/reuse/ui5/userInteraction/clickTab.spec.js +4 -3
- package/test/reuse/ui5/userInteraction/doubleClick.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/dragAndDrop.spec.js +2 -1
- package/test/reuse/ui5/userInteraction/fill.spec.js +6 -5
- package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/mouseOverElement.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/openF4Help.spec.js +3 -2
- package/test/reuse/ui5/userInteraction/rightClick.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/searchFor.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/selectBox.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/selectCombobox.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/selectFromTab.spec.js +2 -1
- package/test/reuse/ui5/userInteraction/selectMultiComboBox.spec.js +6 -5
- package/test/reuse/ui5/userInteraction/test.userInteraction.conf.js +2 -1
- package/test/reuse/ui5/userInteraction/test.userInteraction.sauceLab.conf.js +2 -1
- package/test/reuse/ui5/userInteraction/uncheck.spec.js +4 -3
- package/test/reuse/util/browser/back.spec.js +2 -1
- package/test/reuse/util/browser/forward.spec.js +2 -1
- package/test/reuse/util/browser/getBaseUrl.spec.js +2 -1
- package/test/reuse/util/browser/getCurrentWindow.spec.js +3 -2
- package/test/reuse/util/browser/setBaseUrl.spec.js +3 -2
- package/test/reuse/util/browser/switchToDefaultContent.spec.js +2 -1
- package/test/reuse/util/browser/switchToIframe.spec.js +3 -2
- package/test/reuse/util/browser/switchToWindow.spec.js +3 -2
- package/test/reuse/util/browser/test.browser.conf.js +3 -1
- package/test/reuse/util/component/test.component.conf.js +2 -1
- package/test/reuse/util/console/test.console.conf.js +2 -1
- package/test/reuse/util/data/test.data.conf.js +2 -1
- package/test/reuse/util/data/test.data.privacy.conf.js +2 -1
- package/test/reuse/util/file/test.file.conf.js +2 -1
- package/test/reuse/util/file/upload.spec.js +3 -2
- package/test/reuse/util/formatter/test.formatter.conf.js +2 -1
- package/test/reuse/util/system/test.system.conf.js +2 -1
- 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");
|
|
@@ -37,7 +38,7 @@ describe("Test 'getUI5Property()' and 'getUI5Properties()' on both element and b
|
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
it("should access Checkbox properties on element and browser levels (and track checkbox state)", async function () {
|
|
40
|
-
await browser.navigateTo(
|
|
41
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBoxTriState`);
|
|
41
42
|
await util.browser.refresh();
|
|
42
43
|
await handleCookiesConsent();
|
|
43
44
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -99,7 +100,7 @@ describe("Test 'getUI5Property()' and 'getUI5Properties()' on both element and b
|
|
|
99
100
|
});
|
|
100
101
|
|
|
101
102
|
it("should access Search Field properties on element and browser levels", async function () {
|
|
102
|
-
await browser.navigateTo(
|
|
103
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
103
104
|
await util.browser.refresh();
|
|
104
105
|
await handleCookiesConsent();
|
|
105
106
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -128,7 +129,7 @@ describe("Test 'getUI5Property()' and 'getUI5Properties()' on both element and b
|
|
|
128
129
|
});
|
|
129
130
|
|
|
130
131
|
it("should access Disabled Button properties on element and browser levels", async function () {
|
|
131
|
-
await browser.navigateTo(
|
|
132
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Button/sample/sap.m.sample.Button`);
|
|
132
133
|
await util.browser.refresh();
|
|
133
134
|
await handleCookiesConsent();
|
|
134
135
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -156,7 +157,7 @@ describe("Test 'getUI5Property()' and 'getUI5Properties()' on both element and b
|
|
|
156
157
|
});
|
|
157
158
|
|
|
158
159
|
it("should access Enabled Button properties on element and browser levels, try to access properties via wrong/empty name", async function () {
|
|
159
|
-
await browser.navigateTo(
|
|
160
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Button/sample/sap.m.sample.ButtonWithBadge`);
|
|
160
161
|
await util.browser.refresh();
|
|
161
162
|
await handleCookiesConsent();
|
|
162
163
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var path = require("path");
|
|
2
2
|
var merge = require("deepmerge");
|
|
3
3
|
var profile = require("../../../helper/configurations/chrome.headless.conf.js");
|
|
4
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
4
5
|
|
|
5
6
|
exports.config = merge(profile.config, {
|
|
6
7
|
maxInstances: 6,
|
|
@@ -12,5 +13,5 @@ exports.config = merge(profile.config, {
|
|
|
12
13
|
path.resolve(__dirname, "getBindingInfos.test.js")
|
|
13
14
|
],
|
|
14
15
|
|
|
15
|
-
baseUrl:
|
|
16
|
+
baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`
|
|
16
17
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var path = require("path");
|
|
2
2
|
var merge = require("deepmerge");
|
|
3
3
|
var profile = require("../../../helper/configurations/chrome.headless.conf.js");
|
|
4
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
4
5
|
|
|
5
6
|
exports.config = merge(profile.config, {
|
|
6
7
|
maxInstances: 6,
|
|
@@ -27,5 +28,5 @@ exports.config = merge(profile.config, {
|
|
|
27
28
|
// with `/`, the base url gets prepended, not including the path portion of your baseUrl.
|
|
28
29
|
// If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
|
|
29
30
|
// gets prepended directly.
|
|
30
|
-
baseUrl:
|
|
31
|
+
baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`
|
|
31
32
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const { BASE_URL } = require("../../../src/reuse/constants.ts");
|
|
1
2
|
var merge = require("deepmerge");
|
|
2
3
|
var path = require("path");
|
|
3
4
|
var qmateConf = require("../../helper/configurations/chrome.headless.conf");
|
|
4
5
|
// have main config file as default but overwrite environment specific information
|
|
5
6
|
exports.config = merge(qmateConf.config, {
|
|
6
|
-
baseUrl:
|
|
7
|
+
baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`,
|
|
7
8
|
|
|
8
9
|
suites: {
|
|
9
10
|
testLearn:[path.resolve(__dirname, "./filters1.spec.js")]
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
const { BASE_URL } = require("../../../src/reuse/constants.ts");
|
|
1
2
|
var merge = require("deepmerge");
|
|
2
3
|
var path = require("path");
|
|
3
4
|
var qmateConf = require("../../helper/configurations/chrome.headless.conf");
|
|
4
5
|
|
|
5
6
|
// have main config file as default but overwrite environment specific information
|
|
6
7
|
exports.config = merge(qmateConf.config, {
|
|
7
|
-
baseUrl:
|
|
8
|
+
baseUrl: `${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`,
|
|
8
9
|
params: {
|
|
9
10
|
auth: {
|
|
10
11
|
formType: "plain"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
var merge = require("deepmerge");
|
|
2
2
|
var path = require("path");
|
|
3
3
|
var qmateConf = require("../../helper/configurations/chrome.headless.conf");
|
|
4
|
+
const { BASE_URL } = require("../../../src/reuse/constants.ts");
|
|
4
5
|
|
|
5
6
|
// have main config file as default but overwrite environment specific information
|
|
6
7
|
exports.config = merge(qmateConf.config, {
|
|
7
|
-
baseUrl:
|
|
8
|
+
baseUrl: `${BASE_URL}/#/entity/sap.m.Table/sample/sap.m.sample.TableEditable`,
|
|
8
9
|
|
|
9
10
|
suites: {
|
|
10
11
|
testLearn: "table.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:
|
|
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, "expectDefined.spec.js"),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
|
+
|
|
1
3
|
describe("navigateToUrl", function () {
|
|
2
|
-
const url =
|
|
4
|
+
const url = `${BASE_URL}/`;
|
|
3
5
|
|
|
4
6
|
it("Execution", async function () {
|
|
5
7
|
await common.navigation.navigateToUrl(url);
|
|
@@ -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 - clearAndFillActive", function () {
|
|
@@ -8,7 +9,7 @@ describe("userInteraction - clearAndFillActive", function () {
|
|
|
8
9
|
|
|
9
10
|
it("Preparation", async function () {
|
|
10
11
|
await browser.navigateTo(
|
|
11
|
-
|
|
12
|
+
`${BASE_URL}/#/entity/sap.ui.comp.smartfield.SmartField/sample/sap.ui.comp.sample.smartfield.Overview`
|
|
12
13
|
);
|
|
13
14
|
await handleCookiesConsent();
|
|
14
15
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -50,7 +51,7 @@ describe("userInteraction - clearAndFillActive with invalid selector", function
|
|
|
50
51
|
let value;
|
|
51
52
|
|
|
52
53
|
it("Preparation", async function () {
|
|
53
|
-
await browser.navigateTo(
|
|
54
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputDescription`);
|
|
54
55
|
await util.browser.refresh();
|
|
55
56
|
await handleCookiesConsent();
|
|
56
57
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -73,7 +74,7 @@ describe("userInteraction - clearAndFillActive with wrong element", function ()
|
|
|
73
74
|
let value;
|
|
74
75
|
|
|
75
76
|
it("Preparation", async function () {
|
|
76
|
-
await browser.navigateTo(
|
|
77
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.MenuButton/sample/sap.m.sample.MenuButton`);
|
|
77
78
|
await util.browser.refresh();
|
|
78
79
|
await handleCookiesConsent();
|
|
79
80
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -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 - clearAndFillActiveAndRetry", function () {
|
|
@@ -8,7 +9,7 @@ describe("userInteraction - clearAndFillActiveAndRetry", function () {
|
|
|
8
9
|
|
|
9
10
|
it("Preparation", async function () {
|
|
10
11
|
await browser.navigateTo(
|
|
11
|
-
|
|
12
|
+
`${BASE_URL}/#/entity/sap.ui.comp.smartfield.SmartField/sample/sap.ui.comp.sample.smartfield.Overview`
|
|
12
13
|
);
|
|
13
14
|
await util.browser.refresh();
|
|
14
15
|
await handleCookiesConsent();
|
|
@@ -55,7 +56,7 @@ describe("userInteraction - clearAndFillActiveAndRetry with invalid selector", f
|
|
|
55
56
|
let value;
|
|
56
57
|
|
|
57
58
|
it("Preparation", async function () {
|
|
58
|
-
await browser.navigateTo(
|
|
59
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputDescription`);
|
|
59
60
|
await util.browser.refresh();
|
|
60
61
|
await handleCookiesConsent();
|
|
61
62
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -78,7 +79,7 @@ describe("userInteraction - clearAndFillActiveAndRetry with wrong element", func
|
|
|
78
79
|
let value;
|
|
79
80
|
|
|
80
81
|
it("Preparation", async function () {
|
|
81
|
-
await browser.navigateTo(
|
|
82
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.MenuButton/sample/sap.m.sample.MenuButton`);
|
|
82
83
|
await util.browser.refresh();
|
|
83
84
|
await handleCookiesConsent();
|
|
84
85
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -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 - fillActive", function () {
|
|
@@ -11,7 +12,7 @@ describe("userInteraction - fillActive", function () {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
it("Preparation", async function () {
|
|
14
|
-
await browser.navigateTo(
|
|
15
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
15
16
|
await handleCookiesConsent();
|
|
16
17
|
});
|
|
17
18
|
|
|
@@ -31,7 +32,7 @@ describe("userInteraction - fillActive", function () {
|
|
|
31
32
|
|
|
32
33
|
describe("userInteraction - fillActive - element with invalid selector", function () {
|
|
33
34
|
it("Preparation", async function () {
|
|
34
|
-
await browser.navigateTo(
|
|
35
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
35
36
|
await handleCookiesConsent();
|
|
36
37
|
});
|
|
37
38
|
|
|
@@ -51,7 +52,7 @@ describe("userInteraction - fillActive - element with number", function () {
|
|
|
51
52
|
let actualValue;
|
|
52
53
|
|
|
53
54
|
it("Preparation", async function () {
|
|
54
|
-
await browser.navigateTo(
|
|
55
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
55
56
|
await handleCookiesConsent();
|
|
56
57
|
});
|
|
57
58
|
|
|
@@ -80,7 +81,7 @@ describe("userInteraction - fillActive - element with empty value", function ()
|
|
|
80
81
|
let value;
|
|
81
82
|
|
|
82
83
|
it("Preparation", async function () {
|
|
83
|
-
await browser.navigateTo(
|
|
84
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
84
85
|
await handleCookiesConsent();
|
|
85
86
|
});
|
|
86
87
|
|
|
@@ -106,7 +107,7 @@ describe("userInteraction - fillActive - input", function () {
|
|
|
106
107
|
let actualValue;
|
|
107
108
|
|
|
108
109
|
it("Preparation", async function () {
|
|
109
|
-
await browser.navigateTo(
|
|
110
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputAssisted`);
|
|
110
111
|
await util.browser.refresh();
|
|
111
112
|
await handleCookiesConsent();
|
|
112
113
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -138,7 +139,7 @@ describe("userInteraction - fillActive - textarea", function () {
|
|
|
138
139
|
let actualValue;
|
|
139
140
|
|
|
140
141
|
it("Preparation", async function () {
|
|
141
|
-
await browser.navigateTo(
|
|
142
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.TextArea/sample/sap.m.sample.TextArea`);
|
|
142
143
|
await util.browser.refresh();
|
|
143
144
|
await handleCookiesConsent();
|
|
144
145
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
@@ -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 - fillActiveAndRetry", function () {
|
|
@@ -5,7 +6,7 @@ describe("userInteraction - fillActiveAndRetry", function () {
|
|
|
5
6
|
let actualValue;
|
|
6
7
|
|
|
7
8
|
it("Preparation", async function () {
|
|
8
|
-
await browser.navigateTo(
|
|
9
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
9
10
|
await handleCookiesConsent();
|
|
10
11
|
});
|
|
11
12
|
|
|
@@ -35,7 +36,7 @@ describe("userInteraction - fillActiveAndRetry", function () {
|
|
|
35
36
|
|
|
36
37
|
describe("userInteraction - fillActiveAndRetry - invalid selector", function () {
|
|
37
38
|
it("Preparation", async function () {
|
|
38
|
-
await browser.navigateTo(
|
|
39
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
39
40
|
await handleCookiesConsent();
|
|
40
41
|
});
|
|
41
42
|
|
|
@@ -56,7 +57,7 @@ describe("userInteraction - fillActiveAndRetry - element with number", function
|
|
|
56
57
|
let actualValue;
|
|
57
58
|
|
|
58
59
|
it("Preparation", async function () {
|
|
59
|
-
await browser.navigateTo(
|
|
60
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
60
61
|
await handleCookiesConsent();
|
|
61
62
|
});
|
|
62
63
|
|
|
@@ -87,7 +88,7 @@ describe("userInteraction - fillActiveAndRetry - empty value", function () {
|
|
|
87
88
|
let value;
|
|
88
89
|
|
|
89
90
|
it("Preparation", async function () {
|
|
90
|
-
await browser.navigateTo(
|
|
91
|
+
await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
91
92
|
await handleCookiesConsent();
|
|
92
93
|
});
|
|
93
94
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
1
2
|
const {
|
|
2
3
|
handleCookiesConsent
|
|
3
4
|
} = require("../../../helper/utils");
|
|
@@ -87,7 +88,7 @@ describe("userInteraction - pressEscape", function () {
|
|
|
87
88
|
describe("userInteraction - selectAll", function () {
|
|
88
89
|
|
|
89
90
|
it("Preparation", async function () {
|
|
90
|
-
await browser.navigateTo(
|
|
91
|
+
await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputValueState`);
|
|
91
92
|
await handleCookiesConsent();
|
|
92
93
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
93
94
|
});
|
|
@@ -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 = "//div[contains(text(),'Laptops')]";
|
|
@@ -7,7 +8,7 @@ const compareValue = "visible";
|
|
|
7
8
|
|
|
8
9
|
describe("assertion - expectCssPropertyValueToBe - element", function () {
|
|
9
10
|
it("Preparation", async function () {
|
|
10
|
-
await common.navigation.navigateToUrl(
|
|
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
|
|
|
@@ -19,7 +20,7 @@ describe("assertion - expectCssPropertyValueToBe - element", function () {
|
|
|
19
20
|
|
|
20
21
|
describe("assertion - expectCssPropertyValueToBe - selector", function () {
|
|
21
22
|
it("Preparation", async function () {
|
|
22
|
-
await common.navigation.navigateToUrl(
|
|
23
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
23
24
|
await handleCookiesConsent();
|
|
24
25
|
});
|
|
25
26
|
|
|
@@ -32,7 +33,7 @@ const errorRegexp = /Expected.*wrong.*|Received.*visible/;
|
|
|
32
33
|
|
|
33
34
|
describe("assertion - expectCssPropertyValueToBe - element - error", function () {
|
|
34
35
|
it("Preparation", async function () {
|
|
35
|
-
await common.navigation.navigateToUrl(
|
|
36
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
36
37
|
await handleCookiesConsent();
|
|
37
38
|
});
|
|
38
39
|
|
|
@@ -45,7 +46,7 @@ describe("assertion - expectCssPropertyValueToBe - element - error", function ()
|
|
|
45
46
|
|
|
46
47
|
describe("assertion - expectCssPropertyValueToBe - selector - error", function () {
|
|
47
48
|
it("Preparation", async function () {
|
|
48
|
-
await common.navigation.navigateToUrl(
|
|
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 xpath = "//*[contains(text(),'Hide Filter Bar')]";
|
|
@@ -8,7 +9,7 @@ const wrongValue = "Show Filter Bar";
|
|
|
8
9
|
|
|
9
10
|
describe("assertion - expectTextToBe - element", function () {
|
|
10
11
|
it("Preparation", async function () {
|
|
11
|
-
await common.navigation.navigateToUrl(
|
|
12
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
12
13
|
await handleCookiesConsent();
|
|
13
14
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
14
15
|
});
|
|
@@ -22,7 +23,7 @@ describe("assertion - expectTextToBe - element", function () {
|
|
|
22
23
|
|
|
23
24
|
describe("assertion - expectTextToBe - selector", function () {
|
|
24
25
|
it("Preparation", async function () {
|
|
25
|
-
await common.navigation.navigateToUrl(
|
|
26
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
26
27
|
await handleCookiesConsent();
|
|
27
28
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
28
29
|
});
|
|
@@ -37,7 +38,7 @@ const errorRegexp = /Expected.*Show.*|Received.*Hide/;
|
|
|
37
38
|
|
|
38
39
|
describe("assertion - expectTextToBe - element - error", function () {
|
|
39
40
|
it("Preparation", async function () {
|
|
40
|
-
await common.navigation.navigateToUrl(
|
|
41
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
41
42
|
await handleCookiesConsent();
|
|
42
43
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
43
44
|
});
|
|
@@ -51,7 +52,7 @@ describe("assertion - expectTextToBe - element - error", function () {
|
|
|
51
52
|
|
|
52
53
|
describe("assertion - expectTextToBe - selector - error", function () {
|
|
53
54
|
it("Preparation", async function () {
|
|
54
|
-
await common.navigation.navigateToUrl(
|
|
55
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
55
56
|
await handleCookiesConsent();
|
|
56
57
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
57
58
|
});
|
|
@@ -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("assertion - expectToBeVisible", function () {
|
|
@@ -19,7 +20,7 @@ describe("assertion - expectToBeVisible", function () {
|
|
|
19
20
|
|
|
20
21
|
describe("assertion - expectToBeVisible - element out of viewport", function () {
|
|
21
22
|
it("Preparation", async function () {
|
|
22
|
-
await common.navigation.navigateToUrl(
|
|
23
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox`);
|
|
23
24
|
await handleCookiesConsent();
|
|
24
25
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
25
26
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
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("assertion - expectValueToBe", function () {
|
|
5
6
|
it("Preparation", async function () {
|
|
6
|
-
await common.navigation.navigateToUrl(
|
|
7
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
7
8
|
await handleCookiesConsent();
|
|
8
9
|
});
|
|
9
10
|
|
|
@@ -15,7 +16,7 @@ describe("assertion - expectValueToBe", function () {
|
|
|
15
16
|
|
|
16
17
|
describe("assertion - expectValueToBe - error case", function () {
|
|
17
18
|
it("Preparation", async function () {
|
|
18
|
-
await common.navigation.navigateToUrl(
|
|
19
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
19
20
|
});
|
|
20
21
|
|
|
21
22
|
it("Execution & Verification", async function () {
|
|
@@ -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:
|
|
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, "expectToBeVisible.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:
|
|
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, "expectToBeVisible.spec.js"),
|
|
@@ -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");
|
|
@@ -9,7 +10,7 @@ describe("element - getAttributeValue - inner HTML", function () {
|
|
|
9
10
|
let valueAct;
|
|
10
11
|
|
|
11
12
|
it("Preparation", async function () {
|
|
12
|
-
await common.navigation.navigateToUrl(
|
|
13
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
13
14
|
await handleCookiesConsent();
|
|
14
15
|
});
|
|
15
16
|
|
|
@@ -30,7 +31,7 @@ describe("element - getAttributeValue - with attribute", function () {
|
|
|
30
31
|
let valueAct;
|
|
31
32
|
|
|
32
33
|
it("Preparation", async function () {
|
|
33
|
-
await common.navigation.navigateToUrl(
|
|
34
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
34
35
|
await handleCookiesConsent();
|
|
35
36
|
});
|
|
36
37
|
|
|
@@ -48,7 +49,7 @@ describe("element - getAttributeValue - with attribute", function () {
|
|
|
48
49
|
describe("element - getAttributeValue - error", function () {
|
|
49
50
|
|
|
50
51
|
it("Preparation", async function () {
|
|
51
|
-
await common.navigation.navigateToUrl(
|
|
52
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
52
53
|
});
|
|
53
54
|
|
|
54
55
|
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 - getByChild", function () {
|
|
|
7
8
|
let elemAct;
|
|
8
9
|
|
|
9
10
|
it("Preparation", async function () {
|
|
10
|
-
await common.navigation.navigateToUrl(
|
|
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
|
|
|
@@ -26,7 +27,7 @@ describe("element - getByChild - with index", function () {
|
|
|
26
27
|
let elemAct;
|
|
27
28
|
|
|
28
29
|
it("Preparation", async function () {
|
|
29
|
-
await common.navigation.navigateToUrl(
|
|
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
|
});
|
|
@@ -46,7 +47,7 @@ describe("element - getByChild - with index", function () {
|
|
|
46
47
|
|
|
47
48
|
describe("element - getByChild - error case with wrong element", function () {
|
|
48
49
|
it("Preparation", async function () {
|
|
49
|
-
await common.navigation.navigateToUrl(
|
|
50
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
50
51
|
});
|
|
51
52
|
|
|
52
53
|
it("Execution & Verification", async function () {
|
|
@@ -59,7 +60,7 @@ describe("element - getByChild - error case with wrong element", function () {
|
|
|
59
60
|
|
|
60
61
|
describe("element - getByChild - error case with wrong order of parent and child", function () {
|
|
61
62
|
it("Preparation", async function () {
|
|
62
|
-
await common.navigation.navigateToUrl(
|
|
63
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
63
64
|
});
|
|
64
65
|
|
|
65
66
|
it("Execution & Verification", async function () {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
|
|
3
4
|
describe("element - getByClass + expectToBeVisible", function () {
|
|
4
5
|
|
|
5
6
|
let downloadBtn;
|
|
6
7
|
|
|
7
8
|
it("Preparation", async function () {
|
|
8
|
-
await common.navigation.navigateToUrl(
|
|
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 () {
|
|
@@ -22,7 +23,7 @@ describe("element - getByClass - multiple classes", function () {
|
|
|
22
23
|
let element;
|
|
23
24
|
|
|
24
25
|
it("Preparation", async function () {
|
|
25
|
-
await common.navigation.navigateToUrl(
|
|
26
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
it("Execution", async function () {
|
|
@@ -39,7 +40,7 @@ describe("element - getByClass - all classes", function () {
|
|
|
39
40
|
let element;
|
|
40
41
|
|
|
41
42
|
it("Preparation", async function () {
|
|
42
|
-
await common.navigation.navigateToUrl(
|
|
43
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
43
44
|
});
|
|
44
45
|
|
|
45
46
|
it("Execution", async function () {
|
|
@@ -54,7 +55,7 @@ describe("element - getByClass - all classes", function () {
|
|
|
54
55
|
describe("element - getByClass and catch error", function () {
|
|
55
56
|
|
|
56
57
|
it("Preparation", async function () {
|
|
57
|
-
await common.navigation.navigateToUrl(
|
|
58
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories`);
|
|
58
59
|
});
|
|
59
60
|
|
|
60
61
|
it("Execution & Verification", async function () {
|