@sap_oss/wdio-qmate-service 2.16.0 → 2.16.2
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/REUSE.toml +11 -0
- package/docs/doc.md +4 -2
- package/docs/sections/bestPractices/dataHandling.md +1 -1
- package/docs/sections/contact.md +8 -2
- package/docs/sections/features/advancedDataHandling.md +2 -0
- package/docs/sections/features/config.md +2 -0
- package/docs/sections/gettingStarted/config.md +2 -0
- package/docs/sections/gettingStarted/execution.md +2 -0
- package/docs/sections/gettingStarted/setup.md +2 -0
- package/docs/sections/gettingStarted/spec.md +2 -0
- package/docs/sections/support/knownIssuesAndLimitations.md +2 -0
- package/lib/reuse/modules/nonUi5/userInteraction.d.ts +2 -2
- package/lib/reuse/modules/nonUi5/userInteraction.js +2 -2
- package/lib/reuse/modules/service/odata.d.ts +7 -1
- package/lib/reuse/modules/service/odata.js +17 -12
- package/lib/reuse/modules/service/odata.js.map +1 -1
- package/lib/reuse/modules/ui5/session.js +19 -9
- package/lib/reuse/modules/ui5/session.js.map +1 -1
- package/package.json +2 -2
- package/test/core/functional/chaining/test.conf.js +1 -1
- package/test/core/functional/locators/ancestorProperties.test.js +6 -3
- package/test/core/functional/locators/childProperties.test.js +2 -1
- package/test/core/functional/locators/descendantProperties.test.js +4 -2
- package/test/core/functional/locators/mixedProperties.test.js +2 -3
- package/test/core/functional/locators/parentProperties.test.js +2 -1
- package/test/core/functional/locators/test.locator.conf.js +1 -1
- package/test/core/functional/nativeBrowser/runInBrowser.test.js +1 -1
- package/test/core/functional/nativeBrowser/test.conf.js +1 -1
- package/test/core/functional/nonUi5/test.conf.js +1 -1
- package/test/core/functional/ui5Properties/getAggregations.test.js +4 -3
- package/test/core/functional/ui5Properties/getAssociations.test.js +1 -1
- package/test/core/functional/ui5Properties/getProperties.test.js +9 -5
- package/test/core/functional/ui5Properties/test.conf.js +1 -1
- package/test/core/functional/uiveri5/test.conf.js +1 -1
- package/test/core/testIntegration/config.js +1 -1
- package/test/core/testIntegration/configMultiCombo.js +1 -1
- package/test/core/testIntegration/configTable.js +1 -1
- package/test/core/testIntegration/filters1.spec.js +103 -103
- package/test/core/testIntegration/multicombobox.spec.js +1 -0
- package/test/core/testIntegration/table.spec.js +1 -0
- package/test/reuse/common/assertion/test.assertion.conf.js +1 -1
- package/test/reuse/common/navigation/navigateToUrl.spec.js +1 -1
- package/test/reuse/common/navigation/navigateToUrlAndRetry.spec.js +1 -1
- package/test/reuse/common/userInteraction/clearAndFillActive.spec.js +6 -3
- package/test/reuse/common/userInteraction/clearAndFillActiveAndRetry.spec.js +6 -3
- package/test/reuse/common/userInteraction/fillActive.spec.js +8 -6
- package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +4 -4
- package/test/reuse/common/userInteraction/pressKey.spec.js +2 -1
- package/test/reuse/nonUi5/assertion/expectCssPropertyValueToBe.spec.js +4 -4
- package/test/reuse/nonUi5/assertion/expectToBeVisible.spec.js +2 -1
- package/test/reuse/nonUi5/assertion/expectValueToBe.spec.js +2 -2
- package/test/reuse/nonUi5/assertion/test.assertion.conf.js +1 -1
- package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +1 -1
- package/test/reuse/nonUi5/element/getAttributeValue.spec.js +3 -3
- package/test/reuse/nonUi5/element/getByChild.spec.js +5 -4
- package/test/reuse/nonUi5/element/getByClass.spec.js +4 -4
- package/test/reuse/nonUi5/element/getByCss.spec.js +4 -3
- package/test/reuse/nonUi5/element/getByCssContainingText.spec.js +4 -4
- package/test/reuse/nonUi5/element/getById.spec.js +3 -3
- package/test/reuse/nonUi5/element/getByParent.spec.js +5 -4
- package/test/reuse/nonUi5/element/getByXPath.spec.js +2 -2
- package/test/reuse/nonUi5/element/getCssPropertyValue.spec.js +3 -3
- package/test/reuse/nonUi5/element/getValue.spec.js +3 -3
- package/test/reuse/nonUi5/element/highlight.spec.js +1 -1
- package/test/reuse/nonUi5/element/isPresent.spec.js +3 -3
- package/test/reuse/nonUi5/element/isPresentByCss.spec.js +2 -2
- package/test/reuse/nonUi5/element/isPresentByXPath.spec.js +2 -2
- package/test/reuse/nonUi5/element/setInnerHTML.spec.js +1 -1
- package/test/reuse/nonUi5/element/test.element.conf.js +1 -1
- package/test/reuse/nonUi5/element/test.element.sauceLabs.conf.js +1 -1
- package/test/reuse/nonUi5/userInteraction/doubleClick.spec.js +2 -1
- 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 +3 -3
- package/test/reuse/ui5/assertion/expectCssPropertyValueToBe.spec.js +2 -2
- package/test/reuse/ui5/assertion/expectMessageToastTextToBe.spec.js +4 -2
- package/test/reuse/ui5/assertion/expectToBeVisible.spec.js +1 -1
- package/test/reuse/ui5/assertion/expectToBeVisibleInViewport.spec.js +1 -1
- package/test/reuse/ui5/assertion/expectValidationError.spec.js +4 -2
- package/test/reuse/ui5/assertion/expectValidationSuccess.spec.js +4 -2
- package/test/reuse/ui5/assertion/expectValueToBeDefined.spec.js +2 -1
- package/test/reuse/ui5/assertion/test.assertion.conf.js +1 -1
- package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/confirmationDialog/clickButton.spec.js +4 -2
- package/test/reuse/ui5/confirmationDialog/clickNo.spec.js +4 -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 +1 -1
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/control/focus.spec.js +6 -4
- package/test/reuse/ui5/control/getAggregationProperty.spec.js +4 -2
- package/test/reuse/ui5/control/getAssociationProperty.spec.js +5 -3
- package/test/reuse/ui5/control/test.control.conf.js +1 -1
- package/test/reuse/ui5/control/test.control.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/date/fillRange.spec.js +3 -2
- package/test/reuse/ui5/date/pick.spec.js +7 -4
- package/test/reuse/ui5/date/pickRange.spec.js +8 -4
- package/test/reuse/ui5/element/getByChild.spec.js +7 -4
- package/test/reuse/ui5/element/getByParent.spec.js +6 -3
- package/test/reuse/ui5/element/getByText.spec.js +1 -1
- package/test/reuse/ui5/element/getCssPropertyValue.spec.js +2 -2
- package/test/reuse/ui5/element/getPropertyValue.spec.js +2 -1
- package/test/reuse/ui5/element/test.element.conf.js +1 -1
- package/test/reuse/ui5/element/test.element.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/element/waitForAll.spec.js +4 -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/navigationBar/clickBack.spec.js +4 -4
- package/test/reuse/ui5/navigationBar/clickUserIcon.spec.js +1 -1
- package/test/reuse/ui5/navigationBar/test.navigationBar.conf.js +1 -1
- package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/session/logout.spec.js +1 -1
- package/test/reuse/ui5/table/clickSettingsButton.spec.js +4 -2
- package/test/reuse/ui5/table/sortColumnAscending.spec.js +6 -3
- package/test/reuse/ui5/table/sortColumnDescending.spec.js +6 -3
- package/test/reuse/ui5/userInteraction/check.spec.js +6 -3
- package/test/reuse/ui5/userInteraction/clear.spec.js +6 -3
- package/test/reuse/ui5/userInteraction/clearAndFill.spec.js +12 -6
- package/test/reuse/ui5/userInteraction/clearAndFillAndRetry.spec.js +10 -5
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInput.spec.js +6 -4
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInputAndRetry.spec.js +2 -1
- package/test/reuse/ui5/userInteraction/clearAndRetry.spec.js +4 -2
- package/test/reuse/ui5/userInteraction/click.spec.js +6 -6
- package/test/reuse/ui5/userInteraction/clickAndRetry.spec.js +3 -3
- package/test/reuse/ui5/userInteraction/clickSelectArrow.spec.js +4 -2
- package/test/reuse/ui5/userInteraction/clickSelectArrowAndRetry.spec.js +6 -3
- package/test/reuse/ui5/userInteraction/clickTab.spec.js +5 -5
- package/test/reuse/ui5/userInteraction/doubleClick.spec.js +4 -4
- package/test/reuse/ui5/userInteraction/dragAndDrop.spec.js +2 -1
- package/test/reuse/ui5/userInteraction/fill.spec.js +6 -9
- package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +4 -4
- package/test/reuse/ui5/userInteraction/mouseOverElement.spec.js +4 -2
- package/test/reuse/ui5/userInteraction/openF4Help.spec.js +4 -2
- package/test/reuse/ui5/userInteraction/rightClick.spec.js +4 -4
- package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +5 -4
- package/test/reuse/ui5/userInteraction/searchFor.spec.js +8 -4
- package/test/reuse/ui5/userInteraction/selectBox.spec.js +8 -4
- package/test/reuse/ui5/userInteraction/selectCombobox.spec.js +8 -4
- package/test/reuse/ui5/userInteraction/selectFromTab.spec.js +2 -2
- package/test/reuse/ui5/userInteraction/selectMultiComboBox.spec.js +10 -5
- package/test/reuse/ui5/userInteraction/test.userInteraction.conf.js +1 -1
- package/test/reuse/ui5/userInteraction/test.userInteraction.sauceLab.conf.js +1 -1
- package/test/reuse/ui5/userInteraction/uncheck.spec.js +6 -3
- package/test/reuse/util/browser/back.spec.js +1 -1
- package/test/reuse/util/browser/clearBrowser.spec.js +10 -20
- package/test/reuse/util/browser/executeScript.spec.js +15 -20
- package/test/reuse/util/browser/forward.spec.js +1 -1
- package/test/reuse/util/browser/getBaseUrl.spec.js +1 -1
- package/test/reuse/util/browser/getCurrentUrl.spec.js +1 -0
- package/test/reuse/util/browser/getCurrentWindow.spec.js +2 -2
- package/test/reuse/util/browser/refresh.spec.js +14 -22
- package/test/reuse/util/browser/setBaseUrl.spec.js +2 -2
- package/test/reuse/util/browser/switchToDefaultContent.spec.js +1 -6
- package/test/reuse/util/browser/switchToWindow.spec.js +2 -2
- package/test/reuse/util/browser/test.browser.conf.js +1 -1
- package/test/reuse/util/file/test.file.conf.js +1 -1
- package/test/reuse/util/file/upload.spec.js +5 -2
- package/test/reuse/util/formatter/test.formatter.conf.js +1 -1
- package/test/reuse/util/system/test.system.conf.js +1 -1
- package/.reuse/dep5 +0 -29
|
@@ -10,8 +10,9 @@ describe("userInteraction - selectMultiComboBox", function () {
|
|
|
10
10
|
let expectedValue;
|
|
11
11
|
|
|
12
12
|
it("Preparation", async function () {
|
|
13
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
13
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
|
|
14
14
|
await handleCookiesConsent();
|
|
15
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
it("Execution", async function () {
|
|
@@ -35,8 +36,9 @@ describe("userInteraction - selectMultiComboBox", function () {
|
|
|
35
36
|
describe("userInteraction - selectMultiComboBox (outside of a Viewport)", function () {
|
|
36
37
|
|
|
37
38
|
it("Preparation", async function () {
|
|
38
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
39
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
|
|
39
40
|
await handleCookiesConsent();
|
|
41
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
it("Execution", async function () {
|
|
@@ -70,8 +72,9 @@ describe("userInteraction - selectMultiComboBox use wrong selector", function ()
|
|
|
70
72
|
let value2;
|
|
71
73
|
|
|
72
74
|
it("Preparation", async function () {
|
|
73
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
75
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
|
|
74
76
|
await handleCookiesConsent();
|
|
77
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
75
78
|
});
|
|
76
79
|
|
|
77
80
|
it("Execution & Verification", async function () {
|
|
@@ -95,8 +98,9 @@ describe("userInteraction - selectMultiComboBox use wrong value", function () {
|
|
|
95
98
|
let value2;
|
|
96
99
|
|
|
97
100
|
it("Preparation", async function () {
|
|
98
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
101
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBox");
|
|
99
102
|
await handleCookiesConsent();
|
|
103
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
100
104
|
});
|
|
101
105
|
|
|
102
106
|
it("Execution & Verification", async function () {
|
|
@@ -123,9 +127,10 @@ describe("userInteraction - selectMultiComboBox with index > 0", function () {
|
|
|
123
127
|
const secondIndex = 3;
|
|
124
128
|
|
|
125
129
|
it("Preparation", async function () {
|
|
126
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
130
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.MultiComboBox/sample/sap.m.sample.MultiComboBoxSuggestionsAndValueState");
|
|
127
131
|
await util.browser.refresh();
|
|
128
132
|
await handleCookiesConsent();
|
|
133
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
129
134
|
});
|
|
130
135
|
|
|
131
136
|
it("Execution", async function () {
|
|
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
|
|
|
6
6
|
maxInstances: 5,
|
|
7
7
|
specFileRetries: 2,
|
|
8
8
|
|
|
9
|
-
baseUrl: "https://sapui5.hana.ondemand.com/
|
|
9
|
+
baseUrl: "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
|
|
10
10
|
|
|
11
11
|
specs: [
|
|
12
12
|
path.resolve(__dirname, "clear.spec.js"),
|
|
@@ -10,7 +10,7 @@ exports.config = merge(profile.config, {
|
|
|
10
10
|
maxInstances: 2, // note: for the SAP account, only 5 parallel instances is a max value
|
|
11
11
|
|
|
12
12
|
bail: 1,
|
|
13
|
-
baseUrl: "https://sapui5.hana.ondemand.com/
|
|
13
|
+
baseUrl: "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
|
|
14
14
|
|
|
15
15
|
specs: [
|
|
16
16
|
path.resolve(__dirname, "clear.spec.js"),
|
|
@@ -10,8 +10,9 @@ describe("userInteraction - uncheck - checkbox (checked)", function () {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
it("Preparation", async function () {
|
|
13
|
-
await browser.navigateTo("https://sapui5.hana.ondemand.com
|
|
13
|
+
await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
|
|
14
14
|
await handleCookiesConsent();
|
|
15
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
it("Execution", async function () {
|
|
@@ -33,8 +34,9 @@ describe("userInteraction - uncheck - checkbox (unchecked)", function () {
|
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
it("Preparation", async function () {
|
|
36
|
-
await browser.navigateTo("https://sapui5.hana.ondemand.com
|
|
37
|
+
await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
|
|
37
38
|
await handleCookiesConsent();
|
|
39
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
38
40
|
});
|
|
39
41
|
|
|
40
42
|
it("Execution", async function () {
|
|
@@ -56,8 +58,9 @@ describe("userInteraction - uncheck - checkbox (error)", function () {
|
|
|
56
58
|
};
|
|
57
59
|
|
|
58
60
|
it("Preparation", async function () {
|
|
59
|
-
await browser.navigateTo("https://sapui5.hana.ondemand.com
|
|
61
|
+
await browser.navigateTo("https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBox");
|
|
60
62
|
await handleCookiesConsent();
|
|
63
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
61
64
|
});
|
|
62
65
|
|
|
63
66
|
it("Execution & Verification", async function () {
|
|
@@ -7,7 +7,7 @@ const {
|
|
|
7
7
|
|
|
8
8
|
describe("browser - back", function () {
|
|
9
9
|
it("Preparation", async function () {
|
|
10
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/
|
|
10
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
|
|
11
11
|
await handleCookiesConsent();
|
|
12
12
|
const selector = {
|
|
13
13
|
"elementProperties": {
|
|
@@ -3,16 +3,10 @@
|
|
|
3
3
|
describe("browser - clearBrowser", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
5
|
await browser.navigateTo(browser.config.baseUrl);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"text": [{
|
|
11
|
-
"path": "i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL"
|
|
12
|
-
}]
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
await ui5.userInteraction.click(selector);
|
|
6
|
+
|
|
7
|
+
// Updated selector for the new cookie consent button
|
|
8
|
+
const newCookiesConsentDialog = "button[id='truste-consent-button']";
|
|
9
|
+
nonUi5.userInteraction.click(newCookiesConsentDialog, 0, 15000);
|
|
16
10
|
});
|
|
17
11
|
|
|
18
12
|
it("Execution", async function () {
|
|
@@ -21,15 +15,11 @@ describe("browser - clearBrowser", function () {
|
|
|
21
15
|
|
|
22
16
|
it("Verification", async function () {
|
|
23
17
|
await util.browser.refresh();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}]
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
await ui5.element.getDisplayed(selector);
|
|
18
|
+
|
|
19
|
+
// Updated selector for the new cookie consent button
|
|
20
|
+
const newCookiesConsentDialog = "button[id='truste-consent-button']";
|
|
21
|
+
|
|
22
|
+
// Verify if the new cookie consent button is displayed after clearing the browser cache
|
|
23
|
+
await nonUi5.element.waitToBeVisible(newCookiesConsentDialog);
|
|
34
24
|
});
|
|
35
25
|
});
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { handleCookiesConsent } = require("../../../helper/utils");
|
|
2
3
|
|
|
3
4
|
describe("browser - executeScript", function () {
|
|
5
|
+
|
|
6
|
+
const aboutDialogSelector = {
|
|
7
|
+
"elementProperties": {
|
|
8
|
+
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
9
|
+
"metadata": "sap.m.Image",
|
|
10
|
+
"id": "aboutDialogFragment--aboutLogoSAP"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
4
14
|
it("Preparation", async function () {
|
|
5
15
|
await browser.navigateTo(browser.config.baseUrl);
|
|
6
|
-
|
|
7
|
-
"elementProperties": {
|
|
8
|
-
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
9
|
-
"metadata": "sap.m.Button",
|
|
10
|
-
"text": [{
|
|
11
|
-
"path": "i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL"
|
|
12
|
-
}]
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
await ui5.userInteraction.click(selector);
|
|
16
|
+
await handleCookiesConsent();
|
|
16
17
|
});
|
|
17
18
|
it("Execution", async function () {
|
|
18
19
|
let selector = {
|
|
@@ -27,23 +28,17 @@ describe("browser - executeScript", function () {
|
|
|
27
28
|
"elementProperties": {
|
|
28
29
|
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
29
30
|
"metadata": "sap.ui.unified.MenuItem",
|
|
30
|
-
"
|
|
31
|
+
"icon": "sap-icon://hint",
|
|
32
|
+
"id": "*unifiedmenu"
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
await ui5.userInteraction.click(selector);
|
|
36
|
+
await ui5.element.getDisplayed(aboutDialogSelector);
|
|
34
37
|
await util.browser.executeScript("document.location.reload()");
|
|
35
38
|
});
|
|
36
39
|
|
|
37
40
|
it("Verification", async function () {
|
|
38
|
-
|
|
39
|
-
"elementProperties": {
|
|
40
|
-
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
41
|
-
"metadata": "sap.m.Image",
|
|
42
|
-
"id": "aboutDialogFragment--aboutLogoSAP"
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
await expect(ui5.element.getDisplayed(selector, 0, 3000))
|
|
41
|
+
await expect(ui5.element.getDisplayed(aboutDialogSelector, 0, 3000))
|
|
46
42
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
47
|
-
|
|
48
43
|
});
|
|
49
44
|
});
|
|
@@ -5,7 +5,7 @@ const { handleCookiesConsent } = require("../../../helper/utils");
|
|
|
5
5
|
|
|
6
6
|
describe("browser - forward", function () {
|
|
7
7
|
it("Preparation", async function () {
|
|
8
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/
|
|
8
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/");
|
|
9
9
|
await handleCookiesConsent();
|
|
10
10
|
const selector = {
|
|
11
11
|
elementProperties: {
|
|
@@ -7,7 +7,7 @@ describe("browser - getBaseUrl", function () {
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
it("Verification", () => {
|
|
10
|
-
const expectedUrl = "https://sapui5.hana.ondemand.com/
|
|
10
|
+
const expectedUrl = "https://sapui5.hana.ondemand.com/";
|
|
11
11
|
common.assertion.expectEqual(baseUrl, expectedUrl);
|
|
12
12
|
});
|
|
13
13
|
});
|
|
@@ -14,6 +14,7 @@ describe("browser - getCurrentUrl", function () {
|
|
|
14
14
|
|
|
15
15
|
it("Go to Samples page", async function () {
|
|
16
16
|
await handleCookiesConsent();
|
|
17
|
+
//await util.browser.switchToIframe("[id='sampleFrame']");
|
|
17
18
|
const selector = {
|
|
18
19
|
"elementProperties": {
|
|
19
20
|
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
describe("browser - getCurrentWindow", function () {
|
|
4
|
-
const sapWindowUrl = "https://sapui5.hana.ondemand.com/
|
|
4
|
+
const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
|
|
5
5
|
let sapWindowHandleNative;
|
|
6
6
|
let sapWindowHandleCustom;
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ describe("browser - getCurrentWindow", function () {
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
describe("browser - getCurrentWindow (unhappy case)", function () {
|
|
23
|
-
const sapWindowUrl = "https://sapui5.hana.ondemand.com/
|
|
23
|
+
const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
|
|
24
24
|
let sapWindowHandleCustom;
|
|
25
25
|
|
|
26
26
|
const wdioWindowUrl = "https://webdriver.io/";
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { handleCookiesConsent } = require("../../../helper/utils");
|
|
2
3
|
|
|
4
|
+
describe("browser - refresh", function () {
|
|
3
5
|
|
|
6
|
+
const aboutDialogSelector = {
|
|
7
|
+
"elementProperties": {
|
|
8
|
+
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
9
|
+
"metadata": "sap.m.Image",
|
|
10
|
+
"id": "aboutDialogFragment--aboutLogoSAP"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
describe("browser - refresh", function () {
|
|
7
14
|
it("Preparation", async function () {
|
|
8
15
|
await browser.navigateTo(browser.config.baseUrl);
|
|
9
|
-
|
|
10
|
-
"elementProperties": {
|
|
11
|
-
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
12
|
-
"metadata": "sap.m.Button",
|
|
13
|
-
"text": [{
|
|
14
|
-
"path": "i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL"
|
|
15
|
-
}]
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
await ui5.userInteraction.click(selector);
|
|
16
|
+
await handleCookiesConsent();
|
|
19
17
|
});
|
|
20
18
|
it("Execution", async function () {
|
|
21
19
|
let selector = {
|
|
@@ -30,23 +28,17 @@ describe("browser - refresh", function () {
|
|
|
30
28
|
"elementProperties": {
|
|
31
29
|
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
32
30
|
"metadata": "sap.ui.unified.MenuItem",
|
|
33
|
-
"
|
|
31
|
+
"icon": "sap-icon://hint",
|
|
32
|
+
"id": "*unifiedmenu"
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
await ui5.userInteraction.click(selector);
|
|
36
|
+
await ui5.element.getDisplayed(aboutDialogSelector);
|
|
37
37
|
await util.browser.refresh();
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
it("Verification", async function () {
|
|
41
|
-
|
|
42
|
-
"elementProperties": {
|
|
43
|
-
"viewName": "sap.ui.documentation.sdk.view.App",
|
|
44
|
-
"metadata": "sap.m.Image",
|
|
45
|
-
"id": "aboutDialogFragment--aboutLogoSAP"
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
await expect(ui5.element.getDisplayed(selector, 0, 3000))
|
|
41
|
+
await expect(ui5.element.getDisplayed(aboutDialogSelector, 0, 3000))
|
|
49
42
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
50
|
-
|
|
51
43
|
});
|
|
52
44
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
describe("browser - setBaseUrl", function () {
|
|
4
|
-
const urlToSet = "https://sapui5.hana.ondemand.com/
|
|
4
|
+
const urlToSet = "https://sapui5.hana.ondemand.com/";
|
|
5
5
|
it("Execution", async function () {
|
|
6
|
-
await util.browser.setBaseUrl("https://sapui5.hana.ondemand.com/
|
|
6
|
+
await util.browser.setBaseUrl("https://sapui5.hana.ondemand.com/");
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
it("Verification", async function() {
|
|
@@ -3,7 +3,6 @@ const { handleCookiesConsent } = require("../../../helper/utils");
|
|
|
3
3
|
|
|
4
4
|
describe("browser - switchToDefaultContent", function () {
|
|
5
5
|
|
|
6
|
-
let elem;
|
|
7
6
|
const dialogSelector = {
|
|
8
7
|
"elementProperties": {
|
|
9
8
|
"viewName": "sap.m.sample.Dialog.V",
|
|
@@ -16,10 +15,7 @@ describe("browser - switchToDefaultContent", function () {
|
|
|
16
15
|
//keep latest demo kit version due to iframes here
|
|
17
16
|
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog");
|
|
18
17
|
await handleCookiesConsent();
|
|
19
|
-
|
|
20
|
-
await nonUi5.userInteraction.scrollToElement(elem);
|
|
21
|
-
await util.browser.switchToIframe("iframe[id='sampleFrame']");
|
|
22
|
-
await ui5.element.getDisplayed(dialogSelector);
|
|
18
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
23
19
|
});
|
|
24
20
|
|
|
25
21
|
it("Execution", async function () {
|
|
@@ -31,4 +27,3 @@ describe("browser - switchToDefaultContent", function () {
|
|
|
31
27
|
.rejects.toThrow("uiControlExecuteLocator(): No visible elements found with selector");
|
|
32
28
|
});
|
|
33
29
|
});
|
|
34
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
describe("browser - switchToWindow", function () {
|
|
4
|
-
const sapWindowUrl = "https://sapui5.hana.ondemand.com/
|
|
4
|
+
const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
|
|
5
5
|
let sapWindowHandle;
|
|
6
6
|
const wdioWindowUrl = "https://webdriver.io/";
|
|
7
7
|
let wdioWindowHandle;
|
|
@@ -40,7 +40,7 @@ describe("browser - switchToWindow", function () {
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
describe("browser - switchToWindow (unhappy case)", function () {
|
|
43
|
-
const sapWindowUrl = "https://sapui5.hana.ondemand.com/
|
|
43
|
+
const sapWindowUrl = "https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
|
|
44
44
|
|
|
45
45
|
it("Preparation", async function () {
|
|
46
46
|
await common.navigation.navigateToUrl(sapWindowUrl);
|
|
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
|
|
|
6
6
|
maxInstances: 6,
|
|
7
7
|
specFileRetries: 2,
|
|
8
8
|
|
|
9
|
-
baseUrl: "https://sapui5.hana.ondemand.com
|
|
9
|
+
baseUrl: "https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection",
|
|
10
10
|
|
|
11
11
|
specs: [
|
|
12
12
|
path.resolve(__dirname, "pdfParser.spec.js"),
|
|
@@ -32,6 +32,7 @@ describe("file - upload - default selector", function () {
|
|
|
32
32
|
it("Preparation", async function () {
|
|
33
33
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
34
34
|
await handleCookiesConsent();
|
|
35
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
it("Execution", async function () {
|
|
@@ -47,9 +48,10 @@ describe("file - upload - default selector", function () {
|
|
|
47
48
|
describe("file - upload - custom selector - UI5", function () {
|
|
48
49
|
|
|
49
50
|
it("Preparation", async function () {
|
|
50
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
51
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection");
|
|
51
52
|
await util.browser.refresh();
|
|
52
53
|
await handleCookiesConsent();
|
|
54
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
53
55
|
});
|
|
54
56
|
|
|
55
57
|
it("Execution", async function () {
|
|
@@ -72,9 +74,10 @@ describe("file - upload - custom selector - UI5", function () {
|
|
|
72
74
|
describe("file - upload - custom selector - non UI5", function () {
|
|
73
75
|
|
|
74
76
|
it("Preparation", async function () {
|
|
75
|
-
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com
|
|
77
|
+
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection");
|
|
76
78
|
await util.browser.refresh();
|
|
77
79
|
await handleCookiesConsent();
|
|
80
|
+
await util.browser.switchToIframe("[id='sampleFrame']");
|
|
78
81
|
});
|
|
79
82
|
|
|
80
83
|
it("Execution", async function () {
|
|
@@ -4,7 +4,7 @@ const qmateConfiguration = require("../../../helper/configurations/chrome.headle
|
|
|
4
4
|
exports.config = merge(qmateConfiguration.config, {
|
|
5
5
|
maxInstances: 1,
|
|
6
6
|
|
|
7
|
-
baseUrl: "https://sapui5.hana.ondemand.com
|
|
7
|
+
baseUrl: "https://sapui5.hana.ondemand.com/#/entity/sap.m.UploadCollection/sample/sap.m.sample.UploadCollection",
|
|
8
8
|
|
|
9
9
|
specs: [
|
|
10
10
|
path.resolve(__dirname, "system.spec.js"),
|
package/.reuse/dep5
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
-
Upstream-Name: wdio-qmate-service
|
|
3
|
-
Upstream-Contact: Marvin Grüßinger <marvin.gruessinger@sap.com>
|
|
4
|
-
Source: https://github.com/SAP/wdio-qmate-service
|
|
5
|
-
Disclaimer: The code in this project may include calls to APIs ("API Calls") of
|
|
6
|
-
SAP or third-party products or services developed outside of this project
|
|
7
|
-
("External Products").
|
|
8
|
-
"APIs" means application programming interfaces, as well as their respective
|
|
9
|
-
specifications and implementing code that allows software to communicate with
|
|
10
|
-
other software.
|
|
11
|
-
API Calls to External Products are not licensed under the open source license
|
|
12
|
-
that governs this project. The use of such API Calls and related External
|
|
13
|
-
Products are subject to applicable additional agreements with the relevant
|
|
14
|
-
provider of the External Products. In no event shall the open source license
|
|
15
|
-
that governs this project grant any rights in or to any External Products, or
|
|
16
|
-
alter, expand or supersede any terms of the applicable additional agreements.
|
|
17
|
-
If you have a valid license agreement with SAP for the use of a particular SAP
|
|
18
|
-
External Product, then you may make use of any API Calls included in this
|
|
19
|
-
project's code for that SAP External Product, subject to the terms of such
|
|
20
|
-
license agreement. If you do not have a valid license agreement for the use of
|
|
21
|
-
a particular SAP External Product, then you may only make use of any API Calls
|
|
22
|
-
in this project for that SAP External Product for your internal, non-productive
|
|
23
|
-
and non-commercial test and evaluation of such API Calls. Nothing herein grants
|
|
24
|
-
you any rights to use or access any SAP External Product, or provide any third
|
|
25
|
-
parties the right to use of access any SAP External Product, through API Calls.
|
|
26
|
-
|
|
27
|
-
Files: *
|
|
28
|
-
Copyright: 2022 SAP SE or an SAP affiliate company and wdio-qmate-service contributors
|
|
29
|
-
License: Apache-2.0
|