@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");
|
|
@@ -6,7 +7,7 @@ const {
|
|
|
6
7
|
describe("errorDialog - expectToBeVisible", function () {
|
|
7
8
|
|
|
8
9
|
it("Preparation", async function () {
|
|
9
|
-
await common.navigation.navigateToUrl(
|
|
10
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Dialog/sample/sap.m.sample.DialogMessage`);
|
|
10
11
|
await handleCookiesConsent();
|
|
11
12
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
12
13
|
});
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
};
|
|
31
31
|
</script>
|
|
32
32
|
<!-- Change to path of ui5 bootstrap link to be able to execute locally -->
|
|
33
|
-
<script src="https://
|
|
33
|
+
<script src="https://ui5.sap.com/1.96.27/test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>
|
|
34
34
|
|
|
35
35
|
<!-- Bootstrap the UI5 core library -->
|
|
36
36
|
<!-- Change to path of ui5 bootstrap link to be able to execute locally -->
|
|
37
37
|
<!-- Dont forget to add sap.ushell in data-sap-ui-libs-->
|
|
38
38
|
<script id="sap-ui-bootstrap"
|
|
39
|
-
src="https://
|
|
39
|
+
src="https://ui5.sap.com/1.96.27/resources/sap-ui-core.js"
|
|
40
40
|
data-sap-ui-libs="sap.m, sap.ushell,sap.ui.fl"
|
|
41
41
|
data-sap-ui-theme="sap_bluecrystal"
|
|
42
42
|
data-sap-ui-compatVersion="edge"
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
};
|
|
31
31
|
</script>
|
|
32
32
|
<!-- Change to path of ui5 bootstrap link to be able to execute locally -->
|
|
33
|
-
<script src="https://
|
|
33
|
+
<script src="https://ui5.sap.com/1.96.27/test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>
|
|
34
34
|
|
|
35
35
|
<!-- Bootstrap the UI5 core library -->
|
|
36
36
|
<!-- Change to path of ui5 bootstrap link to be able to execute locally -->
|
|
37
37
|
<!-- Dont forget to add sap.ushell in data-sap-ui-libs-->
|
|
38
38
|
<script id="sap-ui-bootstrap"
|
|
39
|
-
src="https://
|
|
39
|
+
src="https://ui5.sap.com/1.96.27/resources/sap-ui-core.js"
|
|
40
40
|
data-sap-ui-libs="sap.m, sap.ushell,sap.ui.fl"
|
|
41
41
|
data-sap-ui-theme="sap_bluecrystal"
|
|
42
42
|
data-sap-ui-compatVersion="edge"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta charset="UTF-8">
|
|
7
7
|
|
|
8
8
|
<script id="sap-ui-bootstrap"
|
|
9
|
-
src="https://
|
|
9
|
+
src="https://ui5.sap.com/1.96.27/resources/sap-ui-core.js"
|
|
10
10
|
data-sap-ui-language="en"
|
|
11
11
|
data-sap-ui-resourceroots='{
|
|
12
12
|
"sap.ui.demo.nav": "../../",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
|
|
3
4
|
describe("navigationBar - clickSapLogo", async function () {
|
|
4
|
-
const baseUrl =
|
|
5
|
+
const baseUrl = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/sample.manage.products.sepmra/test/index.html?sap-ui-theme=sap_horizon#masterDetail-display`;
|
|
5
6
|
it("Preparation", async function () {
|
|
6
7
|
await common.navigation.navigateToUrl(baseUrl);
|
|
7
8
|
await ui5.navigationBar.expectPageTitle("Manage Products");
|
|
@@ -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:
|
|
10
|
+
baseUrl: `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/sample.manage.products.sepmra/test/index.html?sap-ui-theme=sap_horizon#Shell-home`,
|
|
10
11
|
|
|
11
12
|
specs: [
|
|
12
13
|
path.resolve(__dirname, "clickBack.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.tunnel.conf");
|
|
4
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
4
5
|
|
|
5
6
|
exports.config = merge(profile.config, {
|
|
6
7
|
user: "3549e2d146bbf4a502afd06a071f4b0217da2e7015788135765fc3187eb2290fcdbf352518a423948698eefb17ba62dcad1403855ae7a215d0664d7ec05f5c847ea38b6e1cccdd21c5b0d86ed664ef88a7de6f4fe8fbb716db83000a102a5d753d9a43d491160c1e3206a5dcc31ef4a074a1da1e39d6f16613282f548bbe9a61baf33668e88c1443951b2f6dd8d51bfb81b81a80428b5c53197606095946deebca98b20960cc85cd31a5cf9a278d62d867dd602d59754442b8b8a8294307b374c807afc50c45f742d2e9b67a8248992a73abb07e4c271b647ccdb55db5925fa4e81b35fbc4db19eec1fd2410439ba7af5417a9c691faec3e807aba6a17e5f26fb5da8c18a519276dea9ead247c544a65696642c5d7a86dad63895f781a115434eb6626594078412d62ead47887dd0190b224a593a81f27a37d28124c3d6b94d0c17055c304a8de72841672f861693ae89fde4cff5cd6e118cbc0fd749f95f1ae",
|
|
@@ -11,7 +12,7 @@ exports.config = merge(profile.config, {
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
bail: 1,
|
|
14
|
-
baseUrl:
|
|
15
|
+
baseUrl: `${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`,
|
|
15
16
|
|
|
16
17
|
specs: [
|
|
17
18
|
path.resolve(__dirname, "clickBack.spec.js"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
3
3
|
const baseUrl = "";
|
|
4
4
|
|
|
5
5
|
describe("session - logout with inner verification", function () {
|
|
@@ -40,7 +40,7 @@ describe("session - logout without inner verification", function () {
|
|
|
40
40
|
|
|
41
41
|
describe("session - logout without login (unhappy case)", function () {
|
|
42
42
|
it("Preparation", async function () {
|
|
43
|
-
await common.navigation.navigateToUrlAndRetry(
|
|
43
|
+
await common.navigation.navigateToUrlAndRetry(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`);
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
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");
|
|
@@ -6,7 +7,7 @@ const {
|
|
|
6
7
|
describe("table - clickSettingsButton - smartTable", function () {
|
|
7
8
|
|
|
8
9
|
it("Preparation", async function () {
|
|
9
|
-
await browser.url(
|
|
10
|
+
await browser.url(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
10
11
|
await handleCookiesConsent();
|
|
11
12
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
12
13
|
});
|
|
@@ -37,7 +38,7 @@ describe("table - clickSettingsButton - smartTable with tableSelector", function
|
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
it("Preparation", async function () {
|
|
40
|
-
await browser.url(
|
|
41
|
+
await browser.url(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
41
42
|
await handleCookiesConsent();
|
|
42
43
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
43
44
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
|
|
3
4
|
const tableSelector = {
|
|
4
5
|
elementProperties: {
|
|
@@ -20,7 +21,7 @@ const tableSelectorId = tableSelector.elementProperties.id;
|
|
|
20
21
|
|
|
21
22
|
describe("table - deselectAllRows - demo kit - passing selector", function () {
|
|
22
23
|
it("Preparation", async function () {
|
|
23
|
-
await common.navigation.navigateToUrl(
|
|
24
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
24
25
|
await ui5.table.selectAllRows(tableSelector);
|
|
25
26
|
});
|
|
26
27
|
|
|
@@ -36,7 +37,7 @@ describe("table - deselectAllRows - demo kit - passing selector", function () {
|
|
|
36
37
|
|
|
37
38
|
describe("table - deselectAllRows - demo kit - passing id", function () {
|
|
38
39
|
it("Preparation", async function () {
|
|
39
|
-
await common.navigation.navigateToUrl(
|
|
40
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
40
41
|
await ui5.table.selectAllRows(tableSelectorId);
|
|
41
42
|
});
|
|
42
43
|
|
|
@@ -57,7 +58,7 @@ describe("table - deselectAllRows - demo kit - select all checkbox already desel
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
it("Preparation", async function () {
|
|
60
|
-
await common.navigation.navigateToUrl(
|
|
61
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
61
62
|
await validateUnchecked();
|
|
62
63
|
});
|
|
63
64
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
|
|
3
4
|
const tableSelector = {
|
|
4
5
|
elementProperties: {
|
|
@@ -23,7 +24,7 @@ const rowIndex2 = 4;
|
|
|
23
24
|
|
|
24
25
|
describe("table - deselectRowByIndex - demo kit - index", function () {
|
|
25
26
|
it("Preparation", async function () {
|
|
26
|
-
await common.navigation.navigateToUrl(
|
|
27
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
27
28
|
await ui5.table.selectRowByIndex(tableSelector, rowIndex1);
|
|
28
29
|
await ui5.table.selectRowByIndex(tableSelector, rowIndex2);
|
|
29
30
|
});
|
|
@@ -54,7 +55,7 @@ describe("table - deselectRowByIndex - demo kit - already deselected row remains
|
|
|
54
55
|
}
|
|
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/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
58
59
|
await validateUnchecked();
|
|
59
60
|
});
|
|
60
61
|
|
|
@@ -69,7 +70,7 @@ describe("table - deselectRowByIndex - demo kit - already deselected row remains
|
|
|
69
70
|
|
|
70
71
|
describe("table - deselectRowByIndex - demo kit - passing id", function () {
|
|
71
72
|
it("Preparation", async function () {
|
|
72
|
-
await common.navigation.navigateToUrl(
|
|
73
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
73
74
|
await ui5.table.selectRowByIndex(tableSelector.elementProperties.id, rowIndex1);
|
|
74
75
|
const isSelected = await ui5.element.getPropertyValue(checkBoxSelector("/Products*15)"), "selected");
|
|
75
76
|
await common.assertion.expectEqual(isSelected, true);
|
|
@@ -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
|
let rowSelectors;
|
|
@@ -19,7 +20,7 @@ const uiTableSelector = {
|
|
|
19
20
|
|
|
20
21
|
describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTable - single value as a String", function () {
|
|
21
22
|
it("Preparation", async function () {
|
|
22
|
-
await common.navigation.navigateToUrl(
|
|
23
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
23
24
|
await handleCookiesConsent();
|
|
24
25
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
25
26
|
});
|
|
@@ -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 @@ let rows;
|
|
|
8
9
|
describe("table - getRowSelectorByIndex - smartTable - get first row", function () {
|
|
9
10
|
|
|
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.mtable`);
|
|
12
13
|
await handleCookiesConsent();
|
|
13
14
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
14
15
|
});
|
|
@@ -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 smartTableSelector = {
|
|
@@ -27,7 +28,7 @@ let actRowSelector;
|
|
|
27
28
|
|
|
28
29
|
describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable - get first row", function () {
|
|
29
30
|
it("Preparation", async function () {
|
|
30
|
-
await common.navigation.navigateToUrl(
|
|
31
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
31
32
|
await handleCookiesConsent();
|
|
32
33
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
33
34
|
});
|
|
@@ -54,7 +55,7 @@ describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable -
|
|
|
54
55
|
|
|
55
56
|
describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable - get fifth row", function () {
|
|
56
57
|
// it("Preparation", async function () {
|
|
57
|
-
// await common.navigation.navigateToUrl(
|
|
58
|
+
// await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable");
|
|
58
59
|
// await handleCookiesConsent();
|
|
59
60
|
// await util.browser.switchToIframe("[id='sampleFrame']");
|
|
60
61
|
// });
|
|
@@ -81,7 +82,7 @@ describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable -
|
|
|
81
82
|
|
|
82
83
|
describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable - unhappy case - row with index doesn't exist", function () {
|
|
83
84
|
// it("Preparation", async function () {
|
|
84
|
-
// await common.navigation.navigateToUrl(
|
|
85
|
+
// await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable");
|
|
85
86
|
// await handleCookiesConsent();
|
|
86
87
|
// await util.browser.switchToIframe("[id='sampleFrame']");
|
|
87
88
|
// });
|
|
@@ -96,7 +97,7 @@ describe("table - getSelectorForRowByIndex - sap.ui.comp.smarttable.SmartTable -
|
|
|
96
97
|
describe("table - getSelectorForRowByIndex - sap.ui.table.Table - get first row", function () {
|
|
97
98
|
|
|
98
99
|
it("Preparation", async function () {
|
|
99
|
-
await common.navigation.navigateToUrl(
|
|
100
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.table.Table/sample/sap.ui.table.sample.Basic`);
|
|
100
101
|
await handleCookiesConsent();
|
|
101
102
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
102
103
|
});
|
|
@@ -122,7 +123,7 @@ describe("table - getSelectorForRowByIndex - sap.ui.table.Table - get first row"
|
|
|
122
123
|
describe("table - getSelectorForRowByIndex - sap.ui.table.TreeTable - get first row", function () {
|
|
123
124
|
|
|
124
125
|
it("Preparation", async function () {
|
|
125
|
-
await common.navigation.navigateToUrl(
|
|
126
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.table.TreeTable/sample/sap.ui.table.sample.TreeTable.BasicODataTreeBinding`);
|
|
126
127
|
await handleCookiesConsent();
|
|
127
128
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
128
129
|
});
|
|
@@ -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
|
let rowSelectors;
|
|
@@ -26,7 +27,7 @@ const treeTableSelector = {
|
|
|
26
27
|
|
|
27
28
|
describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTable - single value as a String", function () {
|
|
28
29
|
it("Preparation", async function () {
|
|
29
|
-
await common.navigation.navigateToUrl(
|
|
30
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
30
31
|
await handleCookiesConsent();
|
|
31
32
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
32
33
|
});
|
|
@@ -64,7 +65,7 @@ describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTabl
|
|
|
64
65
|
|
|
65
66
|
describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTable - single value as an Array", function () {
|
|
66
67
|
// it("Preparation", async function () {
|
|
67
|
-
// await common.navigation.navigateToUrl(
|
|
68
|
+
// await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
68
69
|
// await handleCookiesConsent();
|
|
69
70
|
// await util.browser.switchToIframe("[id='sampleFrame']");
|
|
70
71
|
// });
|
|
@@ -102,7 +103,7 @@ describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTabl
|
|
|
102
103
|
|
|
103
104
|
describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTable - multiple values as an Array, receiving multiple columns", function () {
|
|
104
105
|
// it("Preparation", async function () {
|
|
105
|
-
// await common.navigation.navigateToUrl(
|
|
106
|
+
// await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
106
107
|
// await handleCookiesConsent();
|
|
107
108
|
// await util.browser.switchToIframe("[id='sampleFrame']");
|
|
108
109
|
// });
|
|
@@ -150,7 +151,7 @@ describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTabl
|
|
|
150
151
|
|
|
151
152
|
describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTable - unhappy case - multiple values as an array, receiving no row (empty array)", function () {
|
|
152
153
|
// it("Preparation", async function () {
|
|
153
|
-
// await common.navigation.navigateToUrl(
|
|
154
|
+
// await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
154
155
|
// await handleCookiesConsent();
|
|
155
156
|
// await util.browser.switchToIframe("[id='sampleFrame']");
|
|
156
157
|
// });
|
|
@@ -167,7 +168,7 @@ describe("table - getSelectorsForRowsByValues - sap.ui.comp.smarttable.SmartTabl
|
|
|
167
168
|
|
|
168
169
|
describe("table - getSelectorsForRowsByValues - sap.ui.table.Table - single value as an Array", function () {
|
|
169
170
|
it("Preparation", async function () {
|
|
170
|
-
await common.navigation.navigateToUrl(
|
|
171
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.table.Table/sample/sap.ui.table.sample.Basic`);
|
|
171
172
|
await handleCookiesConsent();
|
|
172
173
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
173
174
|
});
|
|
@@ -192,7 +193,7 @@ describe("table - getSelectorsForRowsByValues - sap.ui.table.Table - single valu
|
|
|
192
193
|
|
|
193
194
|
describe("table - getSelectorsForRowsByValues - sap.ui.table.TreeTable - single value as an Array", function () {
|
|
194
195
|
it("Preparation", async function () {
|
|
195
|
-
await common.navigation.navigateToUrl(
|
|
196
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.table.TreeTable/sample/sap.ui.table.sample.TreeTable.HierarchyMaintenanceJSONTreeBinding`);
|
|
196
197
|
await handleCookiesConsent();
|
|
197
198
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
198
199
|
});
|
|
@@ -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("table - getTotalNumberOfRows - demo kit - passing SmartTable", function () {
|
|
5
6
|
let actNumberOfTableRows;
|
|
6
7
|
|
|
7
8
|
it("Preparation", async function () {
|
|
8
|
-
await common.navigation.navigateToUrl(
|
|
9
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
9
10
|
await handleCookiesConsent();
|
|
10
11
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
11
12
|
});
|
|
@@ -32,7 +33,7 @@ describe("table - getTotalNumberOfRows - demo kit - passing ID", function () {
|
|
|
32
33
|
let actNumberOfTableRows;
|
|
33
34
|
|
|
34
35
|
it("Preparation", async function () {
|
|
35
|
-
await common.navigation.navigateToUrl(
|
|
36
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
36
37
|
await handleCookiesConsent();
|
|
37
38
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
38
39
|
});
|
|
@@ -52,7 +53,7 @@ describe("table - getTotalNumberOfRows - demo kit - 0 rows", function () {
|
|
|
52
53
|
let actNumberOfTableRows;
|
|
53
54
|
|
|
54
55
|
it("Preparation", async function () {
|
|
55
|
-
await common.navigation.navigateToUrl(
|
|
56
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
56
57
|
await handleCookiesConsent();
|
|
57
58
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
58
59
|
const selector = {
|
|
@@ -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("table - getTotalNumberOfRowsByValues - demo kit smartTable - 1 match", function () {
|
|
5
6
|
let actNumberOfTableRows;
|
|
6
7
|
|
|
7
8
|
it("Preparation", async function () {
|
|
8
|
-
await common.navigation.navigateToUrl(
|
|
9
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
9
10
|
await handleCookiesConsent();
|
|
10
11
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
11
12
|
});
|
|
@@ -33,7 +34,7 @@ describe("table - getTotalNumberOfRowsByValues - 2 matches", function () {
|
|
|
33
34
|
let actNumberOfTableRows;
|
|
34
35
|
|
|
35
36
|
it("Preparation", async function () {
|
|
36
|
-
await common.navigation.navigateToUrl(
|
|
37
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
37
38
|
await handleCookiesConsent();
|
|
38
39
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
39
40
|
});
|
|
@@ -62,7 +63,7 @@ describe("table - getTotalNumberOfRowsByValues - 1 match by two values", functio
|
|
|
62
63
|
let actNumberOfTableRows;
|
|
63
64
|
|
|
64
65
|
it("Preparation", async function () {
|
|
65
|
-
await common.navigation.navigateToUrl(
|
|
66
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
66
67
|
await handleCookiesConsent();
|
|
67
68
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
68
69
|
});
|
|
@@ -90,7 +91,7 @@ describe("table - getTotalNumberOfRowsByValues - unhappy case- 0 matches", funct
|
|
|
90
91
|
let actNumberOfTableRows;
|
|
91
92
|
|
|
92
93
|
it("Preparation", async function () {
|
|
93
|
-
await common.navigation.navigateToUrl(
|
|
94
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`);
|
|
94
95
|
await handleCookiesConsent();
|
|
95
96
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
96
97
|
});
|
|
@@ -118,7 +119,7 @@ describe("table - getTotalNumberOfRowsByValues - unhappy case- 0 matches", funct
|
|
|
118
119
|
describe("table - getTotalNumberOfRowsByValues - sap.ui.table.TreeTable - single value as an Array", function () {
|
|
119
120
|
let rowCount;
|
|
120
121
|
it("Preparation", async function () {
|
|
121
|
-
await common.navigation.navigateToUrl(
|
|
122
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.table.TreeTable/sample/sap.ui.table.sample.TreeTable.HierarchyMaintenanceJSONTreeBinding`);
|
|
122
123
|
await handleCookiesConsent();
|
|
123
124
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
124
125
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
const smartTableSelector = {
|
|
3
4
|
"elementProperties": {
|
|
4
5
|
"viewName": "sap.suite.ui.generic.template.ListReport.view.ListReport",
|
|
@@ -17,7 +18,7 @@ const goButtonSelector = {
|
|
|
17
18
|
describe("table - openItemByIndex - smartTable - open first item", function () {
|
|
18
19
|
|
|
19
20
|
it("Preparation", async function () {
|
|
20
|
-
const url =
|
|
21
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
21
22
|
await common.navigation.navigateToUrl(url);
|
|
22
23
|
await ui5.userInteraction.click(goButtonSelector);
|
|
23
24
|
});
|
|
@@ -44,7 +45,7 @@ describe("table - openItemByIndex - smartTable - open first item", function () {
|
|
|
44
45
|
describe("table - openItemByIndex - smartTable - open third item", function () {
|
|
45
46
|
|
|
46
47
|
it("Preparation", async function () {
|
|
47
|
-
const url =
|
|
48
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
48
49
|
await common.navigation.navigateToUrl(url);
|
|
49
50
|
await util.browser.refresh();
|
|
50
51
|
await ui5.userInteraction.click(goButtonSelector);
|
|
@@ -72,7 +73,7 @@ describe("table - openItemByIndex - smartTable - open third item", function () {
|
|
|
72
73
|
describe("table - openItemByIndex - smartTable - unhappy case - try to open not existing item", function () {
|
|
73
74
|
|
|
74
75
|
it("Preparation", async function () {
|
|
75
|
-
const url =
|
|
76
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
76
77
|
await common.navigation.navigateToUrl(url);
|
|
77
78
|
await util.browser.refresh();
|
|
78
79
|
await ui5.userInteraction.click(goButtonSelector);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
const smartTableSelector = {
|
|
3
4
|
"elementProperties": {
|
|
4
5
|
"viewName": "sap.suite.ui.generic.template.ListReport.view.ListReport",
|
|
@@ -17,7 +18,7 @@ const goButtonSelector = {
|
|
|
17
18
|
describe("table - openItemByValues - smartTable - single value as a String", function () {
|
|
18
19
|
|
|
19
20
|
it("Preparation", async function () {
|
|
20
|
-
const url =
|
|
21
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
21
22
|
await common.navigation.navigateToUrl(url);
|
|
22
23
|
await ui5.userInteraction.click(goButtonSelector);
|
|
23
24
|
});
|
|
@@ -44,7 +45,7 @@ describe("table - openItemByValues - smartTable - single value as a String", fun
|
|
|
44
45
|
describe("table - openItemByValues - smartTable - single value as an Array - 3 matches - open first one", function () {
|
|
45
46
|
|
|
46
47
|
it("Preparation", async function () {
|
|
47
|
-
const url =
|
|
48
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
48
49
|
await common.navigation.navigateToUrl(url);
|
|
49
50
|
await util.browser.refresh();
|
|
50
51
|
await ui5.userInteraction.click(goButtonSelector);
|
|
@@ -74,7 +75,7 @@ describe("table - openItemByValues - smartTable - single value as an Array - 3 m
|
|
|
74
75
|
describe("table - openItemByValues - smartTable - multiple values as an Array - one match", function () {
|
|
75
76
|
|
|
76
77
|
it("Preparation", async function () {
|
|
77
|
-
const url =
|
|
78
|
+
const url = `${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#`;
|
|
78
79
|
await common.navigation.navigateToUrl(url);
|
|
79
80
|
await util.browser.refresh();
|
|
80
81
|
await ui5.userInteraction.click(goButtonSelector);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
|
|
3
4
|
const tableSelector = {
|
|
4
5
|
elementProperties: {
|
|
@@ -18,7 +19,7 @@ const checkBoxSelector = {
|
|
|
18
19
|
|
|
19
20
|
describe("table - selectAllRows - demo kit - passing selector", function () {
|
|
20
21
|
it("Preparation", async function () {
|
|
21
|
-
await common.navigation.navigateToUrl(
|
|
22
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
22
23
|
});
|
|
23
24
|
|
|
24
25
|
it("Execution", async function () {
|
|
@@ -33,7 +34,7 @@ describe("table - selectAllRows - demo kit - passing selector", function () {
|
|
|
33
34
|
|
|
34
35
|
describe("table - selectAllRows - demo kit - passing id", function () {
|
|
35
36
|
it("Preparation", async function () {
|
|
36
|
-
await common.navigation.navigateToUrl(
|
|
37
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
it("Execution", async function () {
|
|
@@ -49,7 +50,7 @@ describe("table - selectAllRows - demo kit - passing id", function () {
|
|
|
49
50
|
|
|
50
51
|
describe("table - selectAllRows - demo kit - select all checkbox already selected", function () {
|
|
51
52
|
it("Preparation", async function () {
|
|
52
|
-
await common.navigation.navigateToUrl(
|
|
53
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
53
54
|
await ui5.table.selectAllRows(tableSelector);
|
|
54
55
|
});
|
|
55
56
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { BASE_URL } = require("../../../../src/reuse/constants.ts");
|
|
2
3
|
const { validateChecked } = require("./helper");
|
|
3
4
|
|
|
4
5
|
const tableSelector = {
|
|
@@ -21,7 +22,7 @@ const checkBoxSelector = (product) => {
|
|
|
21
22
|
|
|
22
23
|
describe("table - selectRowByIndex - demo kit - index", function () {
|
|
23
24
|
it("Preparation", async function () {
|
|
24
|
-
await common.navigation.navigateToUrl(
|
|
25
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
it("Execution (Index 0)", async function () {
|
|
@@ -49,7 +50,7 @@ describe("table - selectRowByIndex - demo kit - already selected row remains sel
|
|
|
49
50
|
const rowIndex = 0;
|
|
50
51
|
|
|
51
52
|
it("Preparation", async function () {
|
|
52
|
-
await common.navigation.navigateToUrl(
|
|
53
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
53
54
|
await ui5.table.selectRowByIndex(tableSelector, rowIndex);
|
|
54
55
|
await validateChecked(checkBoxSelector("/Products*15)"));
|
|
55
56
|
});
|
|
@@ -67,7 +68,7 @@ describe("table - selectRowByIndex - demo kit - passing id", function () {
|
|
|
67
68
|
const rowIndex = 0;
|
|
68
69
|
|
|
69
70
|
it("Preparation", async function () {
|
|
70
|
-
await common.navigation.navigateToUrl(
|
|
71
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
71
72
|
});
|
|
72
73
|
|
|
73
74
|
it("Execution", 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
|
const { validateChecked } = require("./helper");
|
|
4
5
|
|
|
@@ -50,7 +51,7 @@ const checkBoxSelector3 = (product) => {
|
|
|
50
51
|
|
|
51
52
|
describe("table - selectRowByValues - demo kit - passing value as string - ui5CheckBox", function () {
|
|
52
53
|
it("Preparation", async function () {
|
|
53
|
-
await common.navigation.navigateToUrl(
|
|
54
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
54
55
|
});
|
|
55
56
|
|
|
56
57
|
it("Execution", async function () {
|
|
@@ -65,7 +66,7 @@ describe("table - selectRowByValues - demo kit - passing value as string - ui5Ch
|
|
|
65
66
|
|
|
66
67
|
describe("table - selectRowByValues - demo kit - passing value as array of string - cssItem", function () {
|
|
67
68
|
it("Preparation", async function () {
|
|
68
|
-
await common.navigation.navigateToUrl(
|
|
69
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable`);
|
|
69
70
|
await handleCookiesConsent();
|
|
70
71
|
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
71
72
|
});
|
|
@@ -83,7 +84,7 @@ describe("table - selectRowByValues - demo kit - passing value as array of strin
|
|
|
83
84
|
|
|
84
85
|
describe("table - selectRowByValues - demo kit - passing value as array of string - ui5RadioButton with index - passing id", function () {
|
|
85
86
|
it("Preparation", async function () {
|
|
86
|
-
await common.navigation.navigateToUrl(
|
|
87
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/suite/ui/generic/template/demokit/demokit.html?responderOn=true&demoApp=sttasalesordertt#/?sap-iapp-state--history=1&sap-iapp-state=5`);
|
|
87
88
|
});
|
|
88
89
|
|
|
89
90
|
it("Execution", async function () {
|
|
@@ -98,7 +99,7 @@ describe("table - selectRowByValues - demo kit - passing value as array of strin
|
|
|
98
99
|
|
|
99
100
|
describe("table - selectRowByValues - demo kit - already selected row remains selected", function () {
|
|
100
101
|
it("Preparation", async function () {
|
|
101
|
-
await common.navigation.navigateToUrl(
|
|
102
|
+
await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html?sap-ui-theme=sap_horizon_dark`);
|
|
102
103
|
await ui5.table.selectRowByValues(tableSelector1, "Exotic Liquids");
|
|
103
104
|
await validateChecked(checkBoxSelector1("/Products*15)"));
|
|
104
105
|
});
|