@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
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
describe("filters1", function () {
|
|
27
27
|
|
|
28
|
-
it("
|
|
28
|
+
it("Step 01: click on the first standard item - evaluate browser", async function () {
|
|
29
29
|
var ui5ControlProperties = {
|
|
30
30
|
"elementProperties": {
|
|
31
31
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -43,7 +43,7 @@ describe("filters1", function () {
|
|
|
43
43
|
await expect(title).toBe(newText);
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
it("
|
|
46
|
+
it("Step 02: click on the first standard item - evaluate browser", async function () {
|
|
47
47
|
var ui5ControlProperties = {
|
|
48
48
|
"elementProperties": {
|
|
49
49
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -62,7 +62,7 @@ describe("filters1", function () {
|
|
|
62
62
|
await expect(title).toBe(newText);
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
it("
|
|
65
|
+
it("Step 03: click on the first standard item - evaluate browser wrong element", async function () {
|
|
66
66
|
var ui5ControlProperties = {
|
|
67
67
|
"elementProperties": {
|
|
68
68
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -80,7 +80,7 @@ describe("filters1", function () {
|
|
|
80
80
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
it("
|
|
83
|
+
it("Step 04: click on the first standard item - evaluate browser and fire press", async function () {
|
|
84
84
|
var ui5ControlProperties = {
|
|
85
85
|
"elementProperties": {
|
|
86
86
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -100,7 +100,7 @@ describe("filters1", function () {
|
|
|
100
100
|
await expect(title).toBe("test");
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
it("
|
|
103
|
+
it("Step 05: click back - evaluate browser", async function () {
|
|
104
104
|
var ui5ControlProperties = {
|
|
105
105
|
"elementProperties": { "metadata": "sap.m.Button", "mProperties": { "type": "Back" } },
|
|
106
106
|
"parentProperties": { "metadata": "sap.m.Bar", "mProperties": {} },
|
|
@@ -116,7 +116,7 @@ describe("filters1", function () {
|
|
|
116
116
|
}, selectorParams);
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
it("
|
|
119
|
+
it("Step 06: check Page has descendant text - use deep selector structure", async function () {
|
|
120
120
|
var ui5ControlProperties = {
|
|
121
121
|
"elementProperties": {
|
|
122
122
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -136,7 +136,7 @@ describe("filters1", function () {
|
|
|
136
136
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 30000);
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
it("
|
|
139
|
+
it("Step 07: check Page has descendant text - use deep selector structure sibling", async function () {
|
|
140
140
|
var ui5ControlProperties = {
|
|
141
141
|
"elementProperties": {
|
|
142
142
|
"metadata": "sap.m.Page",
|
|
@@ -161,7 +161,7 @@ describe("filters1", function () {
|
|
|
161
161
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 30000);
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
it("
|
|
164
|
+
it("Step 08: check Page has descendant text - use deep selector structure sibling wrong", async function () {
|
|
165
165
|
var ui5ControlProperties = {
|
|
166
166
|
"elementProperties": {
|
|
167
167
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -199,7 +199,7 @@ describe("filters1", function () {
|
|
|
199
199
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
it("
|
|
202
|
+
it("Step 09: check Page has descendant text - use deep selector structure in elementProperties", async function () {
|
|
203
203
|
var ui5ControlProperties = {
|
|
204
204
|
"elementProperties": {
|
|
205
205
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -225,7 +225,7 @@ describe("filters1", function () {
|
|
|
225
225
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 30000);
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
it("
|
|
228
|
+
it("Step 10: check Page has descendant text - use deep selector structure wrong", async function () {
|
|
229
229
|
var ui5ControlProperties = {
|
|
230
230
|
"elementProperties": {
|
|
231
231
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -252,7 +252,7 @@ describe("filters1", function () {
|
|
|
252
252
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
253
253
|
});
|
|
254
254
|
|
|
255
|
-
it("
|
|
255
|
+
it("Step 11: check Page has descendant text - wait for property only not element", async function () {
|
|
256
256
|
var ui5ControlProperties = {
|
|
257
257
|
"elementProperties": {
|
|
258
258
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -268,7 +268,7 @@ describe("filters1", function () {
|
|
|
268
268
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 1, 30000);
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
it("
|
|
271
|
+
it("Step 12: check Page has descendant text - wait for property without mProperties", async function () {
|
|
272
272
|
var ui5ControlProperties = {
|
|
273
273
|
"elementProperties": { "metadata": "sap.m.Page", "id": "container-cart---welcomeView--page" },
|
|
274
274
|
"descendantProperties": { "metadata": "sap.m.Text", "text": [{ "path": "i18n>welcomeCarouselShipping" }] }
|
|
@@ -276,7 +276,7 @@ describe("filters1", function () {
|
|
|
276
276
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 1, 30000);
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
it("
|
|
279
|
+
it("Step 13: check name is Accessories - check with dom properties and not mProperties", async function () {
|
|
280
280
|
var ui5ControlProperties = {
|
|
281
281
|
"elementProperties": {
|
|
282
282
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -285,7 +285,7 @@ describe("filters1", function () {
|
|
|
285
285
|
"bindingContextPath": "/ProductCategories*",
|
|
286
286
|
"domProperties": {
|
|
287
287
|
"nodeName": "li",
|
|
288
|
-
"role": "
|
|
288
|
+
"role": "listitem",
|
|
289
289
|
"class": "*sapMLIB*sapMSLI"
|
|
290
290
|
}
|
|
291
291
|
}
|
|
@@ -296,7 +296,7 @@ describe("filters1", function () {
|
|
|
296
296
|
await expect(await nameField.getAttribute("data-" + attribute)).toBe(compareValue);
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
-
it("
|
|
299
|
+
it("Step 14: check name is Accessories - check with wrong properties and not mProperties", async function () {
|
|
300
300
|
var ui5ControlProperties = {
|
|
301
301
|
"elementProperties": {
|
|
302
302
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -306,7 +306,7 @@ describe("filters1", function () {
|
|
|
306
306
|
"domProperties": {
|
|
307
307
|
"nodeName": "li",
|
|
308
308
|
"data-sap-ui": "*categoryList-0",
|
|
309
|
-
"role": "
|
|
309
|
+
"role": "listitem",
|
|
310
310
|
"class": "*sapMLIB*sapMSLI",
|
|
311
311
|
"id": "__item1-container-cart---homeView--categoryList-0"
|
|
312
312
|
}
|
|
@@ -317,7 +317,7 @@ describe("filters1", function () {
|
|
|
317
317
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
-
it("
|
|
320
|
+
it("Step 15: check name is Accessories - check with wrong dom properties and not mProperties", async function () {
|
|
321
321
|
var ui5ControlProperties = {
|
|
322
322
|
"elementProperties": {
|
|
323
323
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -327,7 +327,7 @@ describe("filters1", function () {
|
|
|
327
327
|
"domProperties": {
|
|
328
328
|
"nodeName": "li",
|
|
329
329
|
"data-sap-ui": "*categoryList-0",
|
|
330
|
-
"role": "
|
|
330
|
+
"role": "listitem1",
|
|
331
331
|
"class": "*sapMLIB*sapMSLI",
|
|
332
332
|
"id": "__item1-container-cart---homeView--categoryList-0"
|
|
333
333
|
}
|
|
@@ -338,7 +338,7 @@ describe("filters1", function () {
|
|
|
338
338
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
339
339
|
});
|
|
340
340
|
|
|
341
|
-
it("
|
|
341
|
+
it("Step 16: check Page has empty descendant button", async function () {
|
|
342
342
|
var ui5ControlProperties = {
|
|
343
343
|
"elementProperties": {
|
|
344
344
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -350,7 +350,7 @@ describe("filters1", function () {
|
|
|
350
350
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 10000);
|
|
351
351
|
});
|
|
352
352
|
|
|
353
|
-
it("
|
|
353
|
+
it("Step 17: check Page has descendant text", async function () {
|
|
354
354
|
var ui5ControlProperties = {
|
|
355
355
|
"elementProperties": {
|
|
356
356
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -366,7 +366,7 @@ describe("filters1", function () {
|
|
|
366
366
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 10000);
|
|
367
367
|
});
|
|
368
368
|
|
|
369
|
-
it("
|
|
369
|
+
it("Step 18: check Page has descendant button", async function () {
|
|
370
370
|
var ui5ControlProperties = {
|
|
371
371
|
"elementProperties": {
|
|
372
372
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -382,7 +382,7 @@ describe("filters1", function () {
|
|
|
382
382
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, "showHeader", "true", 0, 30000, 10000);
|
|
383
383
|
});
|
|
384
384
|
|
|
385
|
-
it("
|
|
385
|
+
it("Step 19: check Page has wrong descendant text", async function () {
|
|
386
386
|
var ui5ControlProperties = {
|
|
387
387
|
"elementProperties": {
|
|
388
388
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -399,7 +399,7 @@ describe("filters1", function () {
|
|
|
399
399
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
400
400
|
});
|
|
401
401
|
|
|
402
|
-
it("
|
|
402
|
+
it("Step 20: check Page has not direct childern text control", async function () {
|
|
403
403
|
var ui5ControlProperties = {
|
|
404
404
|
"elementProperties": {
|
|
405
405
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -416,7 +416,7 @@ describe("filters1", function () {
|
|
|
416
416
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
417
417
|
});
|
|
418
418
|
|
|
419
|
-
it("
|
|
419
|
+
it("Step 21: check Page has not direct children button control", async function () {
|
|
420
420
|
var ui5ControlProperties = {
|
|
421
421
|
"elementProperties": {
|
|
422
422
|
"metadata": "sap.m.Page", "mProperties": {
|
|
@@ -434,7 +434,7 @@ describe("filters1", function () {
|
|
|
434
434
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
435
435
|
});
|
|
436
436
|
|
|
437
|
-
it("
|
|
437
|
+
it("Step 22: check name is Accessories - check with dom properties", async function () {
|
|
438
438
|
var ui5ControlProperties = {
|
|
439
439
|
"elementProperties": {
|
|
440
440
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -445,7 +445,7 @@ describe("filters1", function () {
|
|
|
445
445
|
"domProperties": {
|
|
446
446
|
"nodeName": "li",
|
|
447
447
|
"data-sap-ui": "*categoryList*",
|
|
448
|
-
"role": "
|
|
448
|
+
"role": "listitem",
|
|
449
449
|
"class": "*sapMLIB*sapMSLI"
|
|
450
450
|
}
|
|
451
451
|
}
|
|
@@ -456,7 +456,7 @@ describe("filters1", function () {
|
|
|
456
456
|
await expect(await nameField.getAttribute("data-" + attribute)).toBe(compareValue);
|
|
457
457
|
});
|
|
458
458
|
|
|
459
|
-
it("
|
|
459
|
+
it("Step 23: check name is Accessories - check with dom properties nodename and id", async function () {
|
|
460
460
|
var ui5ControlProperties = {
|
|
461
461
|
"elementProperties": {
|
|
462
462
|
"metadata": "sap.m.StandardListItem",
|
|
@@ -472,7 +472,7 @@ describe("filters1", function () {
|
|
|
472
472
|
await expect(await nameField.getAttribute("data-" + attribute)).toBe(compareValue);
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
it("
|
|
475
|
+
it("Step 24: check name is Accessories - check with wrong dom properties", async function () {
|
|
476
476
|
var ui5ControlProperties = {
|
|
477
477
|
"elementProperties": {
|
|
478
478
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -483,7 +483,7 @@ describe("filters1", function () {
|
|
|
483
483
|
"domProperties": {
|
|
484
484
|
"nodeName": "li",
|
|
485
485
|
"data-sap-ui": "*categoryList-0",
|
|
486
|
-
"role": "
|
|
486
|
+
"role": "listitem1",
|
|
487
487
|
"class": "*sapMLIB*sapMSLI",
|
|
488
488
|
"id": "__item1-container-cart---homeView--categoryList-0"
|
|
489
489
|
}
|
|
@@ -493,7 +493,7 @@ describe("filters1", function () {
|
|
|
493
493
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
494
494
|
});
|
|
495
495
|
|
|
496
|
-
it("
|
|
496
|
+
it("Step 25: check name is Accessories - check with wrong dom properties", async function () {
|
|
497
497
|
var ui5ControlProperties = {
|
|
498
498
|
"elementProperties": {
|
|
499
499
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -504,7 +504,7 @@ describe("filters1", function () {
|
|
|
504
504
|
"domProperties": {
|
|
505
505
|
"nodeName": "li",
|
|
506
506
|
"data-sap-ui": "*categoryList-0",
|
|
507
|
-
"role": "
|
|
507
|
+
"role": "listitem",
|
|
508
508
|
"class": "*sapMLIB1*sapMSLI",
|
|
509
509
|
"id": "__item1-container-cart---homeView--categoryList-0"
|
|
510
510
|
}
|
|
@@ -514,7 +514,7 @@ describe("filters1", function () {
|
|
|
514
514
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
it("
|
|
517
|
+
it("Step 26: check name is Accessories - use UI5 Control properties", async function () {
|
|
518
518
|
var ui5ControlProperties = {
|
|
519
519
|
"elementProperties": {
|
|
520
520
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -531,7 +531,7 @@ describe("filters1", function () {
|
|
|
531
531
|
await expect(val).toBe(compareValue);
|
|
532
532
|
});
|
|
533
533
|
|
|
534
|
-
it("
|
|
534
|
+
it("Step 27: check name is Accessories - use UI5 Aggregation Control properties", async function () {
|
|
535
535
|
var ui5ControlProperties = {
|
|
536
536
|
"elementProperties": {
|
|
537
537
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -548,7 +548,7 @@ describe("filters1", function () {
|
|
|
548
548
|
await expect(val).toBe(compareValue);
|
|
549
549
|
});
|
|
550
550
|
|
|
551
|
-
it("
|
|
551
|
+
it("Step 28: check name is Accessories - use UI5 Control binding property path", async function () {
|
|
552
552
|
var ui5ControlProperties = {
|
|
553
553
|
"elementProperties": {
|
|
554
554
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -566,7 +566,7 @@ describe("filters1", function () {
|
|
|
566
566
|
});
|
|
567
567
|
|
|
568
568
|
|
|
569
|
-
it("
|
|
569
|
+
it("Step 29: check name is Accessories - use UI5 Control binding context path", async function () {
|
|
570
570
|
var ui5ControlProperties = {
|
|
571
571
|
"elementProperties": {
|
|
572
572
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -581,7 +581,7 @@ describe("filters1", function () {
|
|
|
581
581
|
await expect(sContext).toBe("/ProductCategories('AC')");
|
|
582
582
|
});
|
|
583
583
|
|
|
584
|
-
it("
|
|
584
|
+
it("Step 30: check name is Accessories - view Id check", async function () {
|
|
585
585
|
|
|
586
586
|
var ui5ControlProperties = {
|
|
587
587
|
"elementProperties": {
|
|
@@ -599,7 +599,7 @@ describe("filters1", function () {
|
|
|
599
599
|
|
|
600
600
|
});
|
|
601
601
|
|
|
602
|
-
it("
|
|
602
|
+
it("Step 31: check name is Accessories - view Id wildcard check", async function () {
|
|
603
603
|
var ui5ControlProperties = {
|
|
604
604
|
"elementProperties": {
|
|
605
605
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -616,7 +616,7 @@ describe("filters1", function () {
|
|
|
616
616
|
});
|
|
617
617
|
|
|
618
618
|
|
|
619
|
-
it("
|
|
619
|
+
it("Step 32: check name is Accessories - view Id for ancestor check", async function () {
|
|
620
620
|
|
|
621
621
|
var ui5ControlProperties = {
|
|
622
622
|
"elementProperties": {
|
|
@@ -638,7 +638,7 @@ describe("filters1", function () {
|
|
|
638
638
|
await expect(await nameField.getAttribute("data-" + attribute)).toBe(compareValue);
|
|
639
639
|
});
|
|
640
640
|
|
|
641
|
-
it("
|
|
641
|
+
it("Step 33: check name is Accessories - view Id for ancestor check wrong", async function () {
|
|
642
642
|
|
|
643
643
|
var ui5ControlProperties = {
|
|
644
644
|
"elementProperties": {
|
|
@@ -658,7 +658,7 @@ describe("filters1", function () {
|
|
|
658
658
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
659
659
|
});
|
|
660
660
|
|
|
661
|
-
it("
|
|
661
|
+
it("Step 34: check name is Accessories - view Name check", async function () {
|
|
662
662
|
|
|
663
663
|
var ui5ControlProperties = {
|
|
664
664
|
"elementProperties": {
|
|
@@ -676,7 +676,7 @@ describe("filters1", function () {
|
|
|
676
676
|
|
|
677
677
|
});
|
|
678
678
|
|
|
679
|
-
it("
|
|
679
|
+
it("Step 35: check name is Accessories - view name wildcard check", async function () {
|
|
680
680
|
|
|
681
681
|
var ui5ControlProperties = {
|
|
682
682
|
"elementProperties": {
|
|
@@ -695,7 +695,7 @@ describe("filters1", function () {
|
|
|
695
695
|
});
|
|
696
696
|
|
|
697
697
|
|
|
698
|
-
it("
|
|
698
|
+
it("Step 36: check name is Accessories - view name for ancestor check", async function () {
|
|
699
699
|
|
|
700
700
|
var ui5ControlProperties = {
|
|
701
701
|
"elementProperties": {
|
|
@@ -717,7 +717,7 @@ describe("filters1", function () {
|
|
|
717
717
|
await expect(await nameField.getAttribute("data-" + attribute)).toBe(compareValue);
|
|
718
718
|
});
|
|
719
719
|
|
|
720
|
-
it("
|
|
720
|
+
it("Step 37: check name is Accessories - view name for ancestor check wrong", async function () {
|
|
721
721
|
|
|
722
722
|
var ui5ControlProperties = {
|
|
723
723
|
"elementProperties": {
|
|
@@ -737,7 +737,7 @@ describe("filters1", function () {
|
|
|
737
737
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
738
738
|
});
|
|
739
739
|
|
|
740
|
-
it("
|
|
740
|
+
it("Step 38: check name is Accessories - chaining assert with no index", async function () {
|
|
741
741
|
var ui5ControlProperties = {
|
|
742
742
|
"elementProperties": { "metadata": "sap.m.List", "mProperties": { "items": [{ "path": "/ProductCategories" }] } },
|
|
743
743
|
"parentProperties": { "metadata": "sap.m.Page", "mProperties": { "title": [{ "path": "i18n>homeTitle" }] } }
|
|
@@ -755,7 +755,7 @@ describe("filters1", function () {
|
|
|
755
755
|
|
|
756
756
|
});
|
|
757
757
|
|
|
758
|
-
it("
|
|
758
|
+
it("Step 39: check name is Accessories - chaining assert with index", async function () {
|
|
759
759
|
var ui5ControlProperties = {
|
|
760
760
|
"elementProperties": { "metadata": "sap.m.List", "mProperties": { "items": [{ "path": "/ProductCategories" }] } },
|
|
761
761
|
"parentProperties": { "metadata": "sap.m.Page", "mProperties": { "title": [{ "path": "i18n>homeTitle" }] } }
|
|
@@ -768,7 +768,7 @@ describe("filters1", function () {
|
|
|
768
768
|
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
it("
|
|
771
|
+
it("Step 40: check name is Accessories - chaining assert with wrong index", async function () {
|
|
772
772
|
var ui5ControlProperties = {
|
|
773
773
|
"elementProperties": { "metadata": "sap.m.List", "mProperties": { "items": [{ "path": "/ProductCategories" }] } },
|
|
774
774
|
"parentProperties": { "metadata": "sap.m.Page", "mProperties": { "title": [{ "path": "i18n>homeTitle" }] } }
|
|
@@ -784,7 +784,7 @@ describe("filters1", function () {
|
|
|
784
784
|
await expect(await nameField.getAttribute("data-" + attribute)).not.toBe(compareValue);
|
|
785
785
|
});
|
|
786
786
|
|
|
787
|
-
it("
|
|
787
|
+
it("Step 41: check name is Computer System Accessories - chaining assert", async function () {
|
|
788
788
|
var ui5ControlProperties = {
|
|
789
789
|
"elementProperties": { "metadata": "sap.m.List", "mProperties": { "items": [{ "path": "/ProductCategories" }] } },
|
|
790
790
|
"parentProperties": { "metadata": "sap.m.Page", "mProperties": { "title": [{ "path": "i18n>homeTitle" }] } }
|
|
@@ -802,7 +802,7 @@ describe("filters1", function () {
|
|
|
802
802
|
|
|
803
803
|
});
|
|
804
804
|
|
|
805
|
-
it("
|
|
805
|
+
it("Step 42: click on the first standard item check id with wildcard", async function () {
|
|
806
806
|
var ui5ControlProperties = {
|
|
807
807
|
"elementProperties": {
|
|
808
808
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -815,7 +815,7 @@ describe("filters1", function () {
|
|
|
815
815
|
await nameField.click();
|
|
816
816
|
});
|
|
817
817
|
|
|
818
|
-
it("
|
|
818
|
+
it("Step 43: check chaining in a objectlist item", async function () {
|
|
819
819
|
//----------------------- Block for sap.m.ObjectListItem - Get Element Reference
|
|
820
820
|
var objectListProp = {
|
|
821
821
|
"elementProperties": { "metadata": "sap.m.ObjectListItem", "mProperties": { "title": [{ "path": "Name" }], "number": [{ "path": "Price" }], "bindingContextPath": "/Products('HT-2001')" } },
|
|
@@ -831,7 +831,7 @@ describe("filters1", function () {
|
|
|
831
831
|
await expect(expVal).toBe(compareValue); // === expVal[0] in vyperForAll
|
|
832
832
|
});
|
|
833
833
|
|
|
834
|
-
it("
|
|
834
|
+
it("Step 44: check chaining in a objectlist item with index", async function () {
|
|
835
835
|
//----------------------- Block for sap.m.ObjectListItem - Get Element Reference
|
|
836
836
|
var objectListProp = {
|
|
837
837
|
"elementProperties": { "metadata": "sap.m.ObjectListItem", "mProperties": { "title": [{ "path": "Name" }], "number": [{ "path": "Price" }], "bindingContextPath": "/Products('HT-2001')" } },
|
|
@@ -847,7 +847,7 @@ describe("filters1", function () {
|
|
|
847
847
|
await expect(expVal).toBe(compareValue); // === expVal[0] in vyperForAll
|
|
848
848
|
});
|
|
849
849
|
|
|
850
|
-
it("
|
|
850
|
+
it("Step 45: navigate back to main page", async function () {
|
|
851
851
|
var ui5ControlProperties = {
|
|
852
852
|
"elementProperties": { "metadata": "sap.m.Button", "mProperties": { "type": "Back" } },
|
|
853
853
|
"parentProperties": { "metadata": "sap.m.Bar", "mProperties": {} },
|
|
@@ -858,7 +858,7 @@ describe("filters1", function () {
|
|
|
858
858
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
859
859
|
});
|
|
860
860
|
|
|
861
|
-
it("
|
|
861
|
+
it("Step 46: click on the first standard item check id only with wildcard", async function () {
|
|
862
862
|
var ui5ControlProperties = {
|
|
863
863
|
"elementProperties": {
|
|
864
864
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -869,7 +869,7 @@ describe("filters1", function () {
|
|
|
869
869
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
870
870
|
});
|
|
871
871
|
|
|
872
|
-
it("
|
|
872
|
+
it("Step 47: navigate back to main page", async function () {
|
|
873
873
|
var ui5ControlProperties = {
|
|
874
874
|
"elementProperties": { "metadata": "sap.m.Button", "mProperties": { "type": "Back" } },
|
|
875
875
|
"parentProperties": { "metadata": "sap.m.Bar", "mProperties": {} },
|
|
@@ -880,7 +880,7 @@ describe("filters1", function () {
|
|
|
880
880
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
881
881
|
});
|
|
882
882
|
|
|
883
|
-
it("
|
|
883
|
+
it("Step 48: click on the first standard item check id with wildcard", async function () {
|
|
884
884
|
var ui5ControlProperties = {
|
|
885
885
|
"elementProperties": {
|
|
886
886
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -893,7 +893,7 @@ describe("filters1", function () {
|
|
|
893
893
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
894
894
|
});
|
|
895
895
|
|
|
896
|
-
it("
|
|
896
|
+
it("Step 49: check first item with aggregation property", async function () {
|
|
897
897
|
//----------------------- Block for sap.m.StandardListItem - Perform Assert -----------------------
|
|
898
898
|
var ui5ControlProperties = {
|
|
899
899
|
"elementProperties": {
|
|
@@ -912,7 +912,7 @@ describe("filters1", function () {
|
|
|
912
912
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
913
913
|
});
|
|
914
914
|
|
|
915
|
-
it("
|
|
915
|
+
it("Step 50: check first item with aggregation property wildcard", async function () {
|
|
916
916
|
//----------------------- Block for sap.m.StandardListItem - Perform Assert -----------------------
|
|
917
917
|
var ui5ControlProperties = {
|
|
918
918
|
"elementProperties": {
|
|
@@ -931,7 +931,7 @@ describe("filters1", function () {
|
|
|
931
931
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
932
932
|
});
|
|
933
933
|
|
|
934
|
-
it("
|
|
934
|
+
it("Step 51: check first item with aggregation property wildcard", async function () {
|
|
935
935
|
//----------------------- Block for sap.m.StandardListItem - Perform Assert -----------------------
|
|
936
936
|
var ui5ControlProperties = {
|
|
937
937
|
"elementProperties": {
|
|
@@ -951,7 +951,7 @@ describe("filters1", function () {
|
|
|
951
951
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
952
952
|
});
|
|
953
953
|
|
|
954
|
-
it("
|
|
954
|
+
it("Step 52: check first item with association property wrong", async function () {
|
|
955
955
|
//----------------------- Block for sap.m.StandardListItem - Perform Assert -----------------------
|
|
956
956
|
var ui5ControlProperties = {
|
|
957
957
|
"elementProperties": {
|
|
@@ -971,7 +971,7 @@ describe("filters1", function () {
|
|
|
971
971
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
972
972
|
});
|
|
973
973
|
|
|
974
|
-
it("
|
|
974
|
+
it("Step 53: check if product list aggregation bindingpath is correct", async function () {
|
|
975
975
|
var ui5ControlProperties = {
|
|
976
976
|
"elementProperties": {
|
|
977
977
|
"metadata": "sap.m.List", "mProperties": {
|
|
@@ -999,7 +999,7 @@ describe("filters1", function () {
|
|
|
999
999
|
await ui5.assertion.expectBindingPathToBe(ui5ControlProperties, attribute1, comparePath1, Index, 100, 30000);
|
|
1000
1000
|
});
|
|
1001
1001
|
|
|
1002
|
-
it("
|
|
1002
|
+
it("Step 54: click on the first standard item", async function () {
|
|
1003
1003
|
var ui5ControlProperties = {
|
|
1004
1004
|
"elementProperties": {
|
|
1005
1005
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -1011,7 +1011,7 @@ describe("filters1", function () {
|
|
|
1011
1011
|
await nameField.click();
|
|
1012
1012
|
});
|
|
1013
1013
|
|
|
1014
|
-
it("
|
|
1014
|
+
it("Step 55: check text for specific list item ancestor with * wildcard", async function () {
|
|
1015
1015
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1016
1016
|
var ui5ControlProperties = {
|
|
1017
1017
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1032,7 +1032,7 @@ describe("filters1", function () {
|
|
|
1032
1032
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1033
1033
|
});
|
|
1034
1034
|
|
|
1035
|
-
it("
|
|
1035
|
+
it("Step 56: check text for specific list item ancestor", async function () {
|
|
1036
1036
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1037
1037
|
var ui5ControlProperties = {
|
|
1038
1038
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video*" } },
|
|
@@ -1053,7 +1053,7 @@ describe("filters1", function () {
|
|
|
1053
1053
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1054
1054
|
});
|
|
1055
1055
|
|
|
1056
|
-
it("
|
|
1056
|
+
it("Step 57: check text for specific list item ancestor with wild card", async function () {
|
|
1057
1057
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1058
1058
|
var ui5ControlProperties = {
|
|
1059
1059
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1074,7 +1074,7 @@ describe("filters1", function () {
|
|
|
1074
1074
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1075
1075
|
});
|
|
1076
1076
|
|
|
1077
|
-
it("
|
|
1077
|
+
it("Step 58: check text for specific list item ancestor with wild card 2", async function () {
|
|
1078
1078
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1079
1079
|
var ui5ControlProperties = {
|
|
1080
1080
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1095,7 +1095,7 @@ describe("filters1", function () {
|
|
|
1095
1095
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1096
1096
|
});
|
|
1097
1097
|
|
|
1098
|
-
it("
|
|
1098
|
+
it("Step 59: check text for specific list item ancestor with wild card 2", async function () {
|
|
1099
1099
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1100
1100
|
var ui5ControlProperties = {
|
|
1101
1101
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1116,7 +1116,7 @@ describe("filters1", function () {
|
|
|
1116
1116
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1117
1117
|
});
|
|
1118
1118
|
|
|
1119
|
-
it("
|
|
1119
|
+
it("Step 60: check text for specific list item ancestor", async function () {
|
|
1120
1120
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1121
1121
|
var ui5ControlProperties = {
|
|
1122
1122
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1137,7 +1137,7 @@ describe("filters1", function () {
|
|
|
1137
1137
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1138
1138
|
});
|
|
1139
1139
|
|
|
1140
|
-
it("
|
|
1140
|
+
it("Step 61: check text for specific list item ancestor with wrong wildcard", async function () {
|
|
1141
1141
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1142
1142
|
var ui5ControlProperties = {
|
|
1143
1143
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1159,7 +1159,7 @@ describe("filters1", function () {
|
|
|
1159
1159
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1160
1160
|
});
|
|
1161
1161
|
|
|
1162
|
-
it("
|
|
1162
|
+
it("Step 62: check text for specific list item sibling", async function () {
|
|
1163
1163
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1164
1164
|
var ui5ControlProperties = {
|
|
1165
1165
|
"elementProperties": {
|
|
@@ -1185,7 +1185,7 @@ describe("filters1", function () {
|
|
|
1185
1185
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1186
1186
|
});
|
|
1187
1187
|
|
|
1188
|
-
it("
|
|
1188
|
+
it("Step 63: check text for specific list item sibling wrong property", async function () {
|
|
1189
1189
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1190
1190
|
var ui5ControlProperties = {
|
|
1191
1191
|
"elementProperties": {
|
|
@@ -1212,7 +1212,7 @@ describe("filters1", function () {
|
|
|
1212
1212
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1213
1213
|
});
|
|
1214
1214
|
|
|
1215
|
-
it("
|
|
1215
|
+
it("Step 64: check text for specific list item ancestor wrong path", async function () {
|
|
1216
1216
|
//----------------------- Block for sap.m.Text - Perform Assert -----------------------
|
|
1217
1217
|
var ui5ControlProperties = {
|
|
1218
1218
|
"elementProperties": { "metadata": "sap.m.Text", "mProperties": { "text": "Audio/Video Cable Kit - 4m" } },
|
|
@@ -1234,7 +1234,7 @@ describe("filters1", function () {
|
|
|
1234
1234
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1235
1235
|
});
|
|
1236
1236
|
|
|
1237
|
-
it("
|
|
1237
|
+
it("Step 65: navigate back to main page", async function () {
|
|
1238
1238
|
var ui5ControlProperties = {
|
|
1239
1239
|
"elementProperties": { "metadata": "sap.m.Button", "mProperties": { "type": "Back" } },
|
|
1240
1240
|
"parentProperties": { "metadata": "sap.m.Bar", "mProperties": {} },
|
|
@@ -1245,7 +1245,7 @@ describe("filters1", function () {
|
|
|
1245
1245
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
1246
1246
|
});
|
|
1247
1247
|
|
|
1248
|
-
it("
|
|
1248
|
+
it("Step 66: click on the second standard item", async function () {
|
|
1249
1249
|
var ui5ControlProperties = {
|
|
1250
1250
|
"elementProperties": {
|
|
1251
1251
|
"metadata": "sap.m.StandardListItem", "mProperties": {
|
|
@@ -1256,7 +1256,7 @@ describe("filters1", function () {
|
|
|
1256
1256
|
await nameField.click();
|
|
1257
1257
|
});
|
|
1258
1258
|
|
|
1259
|
-
it("
|
|
1259
|
+
it("Step 67: navigate back to main page", async function () {
|
|
1260
1260
|
var ui5ControlProperties = {
|
|
1261
1261
|
"elementProperties": { "metadata": "sap.m.Button", "mProperties": { "type": "Back" } },
|
|
1262
1262
|
"parentProperties": { "metadata": "sap.m.Bar", "mProperties": {} },
|
|
@@ -1267,7 +1267,7 @@ describe("filters1", function () {
|
|
|
1267
1267
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
1268
1268
|
});
|
|
1269
1269
|
|
|
1270
|
-
it("
|
|
1270
|
+
it("Step 68: expect main page visible", async function () {
|
|
1271
1271
|
var ui5ControlProperties = {
|
|
1272
1272
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholder": "Search" } },
|
|
1273
1273
|
"parentProperties": { "metadata": "sap.m.Toolbar", "mProperties": {} },
|
|
@@ -1278,7 +1278,7 @@ describe("filters1", function () {
|
|
|
1278
1278
|
await ui5.assertion.expectToBeVisible(ui5ControlProperties, 0, 10, 30000);
|
|
1279
1279
|
});
|
|
1280
1280
|
|
|
1281
|
-
it("
|
|
1281
|
+
it("Step 69: enter on Accessories and search", async function () {
|
|
1282
1282
|
var ui5ControlProperties = {
|
|
1283
1283
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholder": "Search" } },
|
|
1284
1284
|
"parentProperties": { "metadata": "sap.m.Toolbar", "mProperties": {} },
|
|
@@ -1290,7 +1290,7 @@ describe("filters1", function () {
|
|
|
1290
1290
|
await ui5.userInteraction.searchFor(ui5ControlProperties, value, 0, 30000, false);
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
-
it("
|
|
1293
|
+
it("Step 70: enter on Accessories and search wrong element value", async function () {
|
|
1294
1294
|
// "placeholders": "Search1" - wring value for test
|
|
1295
1295
|
var ui5ControlProperties = {
|
|
1296
1296
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholders": "Search1" } },
|
|
@@ -1304,7 +1304,7 @@ describe("filters1", function () {
|
|
|
1304
1304
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1305
1305
|
});
|
|
1306
1306
|
|
|
1307
|
-
it("
|
|
1307
|
+
it("Step 71: enter on Accessories and search with additional property", async function () {
|
|
1308
1308
|
var ui5ControlProperties = {
|
|
1309
1309
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholder": "Search", "enableSuggestions": "false", "maxLength": "0" } },
|
|
1310
1310
|
"parentProperties": { "metadata": "sap.m.Toolbar", "mProperties": {} },
|
|
@@ -1316,7 +1316,7 @@ describe("filters1", function () {
|
|
|
1316
1316
|
await ui5.userInteraction.searchFor(ui5ControlProperties, value, 0, 30000, false);
|
|
1317
1317
|
});
|
|
1318
1318
|
|
|
1319
|
-
it("
|
|
1319
|
+
it("Step 72: enter on Accessories and search with wrong boolean additional property", async function () {
|
|
1320
1320
|
// "enableSuggestions": "true" - wrong property for test
|
|
1321
1321
|
var ui5ControlProperties = {
|
|
1322
1322
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholder": "Search", "enableSuggestions": "true", "maxLength": "0" } },
|
|
@@ -1330,7 +1330,7 @@ describe("filters1", function () {
|
|
|
1330
1330
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
|
-
it("
|
|
1333
|
+
it("Step 73: enter on Accessories and search with wrong number additional property", async function () {
|
|
1334
1334
|
// "maxLength": "1" - wrong value for test
|
|
1335
1335
|
var ui5ControlProperties = {
|
|
1336
1336
|
"elementProperties": { "metadata": "sap.m.SearchField", "mProperties": { "placeholder": "Search", "enableSuggestions": "false", "maxLength": "1" } },
|
|
@@ -1344,7 +1344,7 @@ describe("filters1", function () {
|
|
|
1344
1344
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1345
1345
|
});
|
|
1346
1346
|
|
|
1347
|
-
it("
|
|
1347
|
+
it("Step 74: click on Object item", async function () {
|
|
1348
1348
|
var ui5ControlProperties = {
|
|
1349
1349
|
"elementProperties": { "metadata": "sap.m.ObjectListItem", "mProperties": { "numberUnit": "EUR", "type": "Inactive", "title": "Flat Basic", "number": "399,00" } },
|
|
1350
1350
|
"parentProperties": { "metadata": "sap.m.List", "mProperties": { "mode": "SingleSelectMaster", "noDataText": "No products found" } },
|
|
@@ -1354,7 +1354,7 @@ describe("filters1", function () {
|
|
|
1354
1354
|
await ui5.userInteraction.click(ui5ControlProperties);
|
|
1355
1355
|
});
|
|
1356
1356
|
|
|
1357
|
-
it("
|
|
1357
|
+
it("Step 75: click on Object item wrong child property", async function () {
|
|
1358
1358
|
// "src": "./../../../../../../test-resources/sap/ui/documentation/sdk/images/HT-1036.jpg" - wrong value for test
|
|
1359
1359
|
var ui5ControlProperties = {
|
|
1360
1360
|
"elementProperties": { "metadata": "sap.m.ObjectListItem", "mProperties": { "numberUnit": "EUR", "type": "Inactive", "title": "Flat Basic", "number": "399,00" } },
|
|
@@ -1367,7 +1367,7 @@ describe("filters1", function () {
|
|
|
1367
1367
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1368
1368
|
});
|
|
1369
1369
|
|
|
1370
|
-
it("
|
|
1370
|
+
it("Step 76: click on Object item wrong element property", async function () {
|
|
1371
1371
|
// "numberUnit": "EUV" - wrong value for test
|
|
1372
1372
|
var ui5ControlProperties = {
|
|
1373
1373
|
"elementProperties": { "metadata": "sap.m.ObjectListItem", "mProperties": { "numberUnit": "EUV", "type": "Inactive", "title": "Flat Basic", "number": "399,00" } },
|
|
@@ -1379,7 +1379,7 @@ describe("filters1", function () {
|
|
|
1379
1379
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1380
1380
|
});
|
|
1381
1381
|
|
|
1382
|
-
it("
|
|
1382
|
+
it("Step 77: check if Supplier text exists", async function () {
|
|
1383
1383
|
var ui5ControlProperties = {
|
|
1384
1384
|
"elementProperties": { "metadata": "sap.m.ObjectAttribute", "mProperties": { "title": "Supplier", "text": "Very Best Screens" } },
|
|
1385
1385
|
"parentProperties": { "metadata": "sap.m.ObjectHeader", "mProperties": { "titleLevel": "H3", "numberUnit": "EUR", "title": "Flat Basic", "number": "399,00" } },
|
|
@@ -1394,7 +1394,7 @@ describe("filters1", function () {
|
|
|
1394
1394
|
|
|
1395
1395
|
});
|
|
1396
1396
|
|
|
1397
|
-
it("
|
|
1397
|
+
it("Step 78: check if Supplier text exists wrong parent property", async function () {
|
|
1398
1398
|
// "title": "Flat Basics" - wrong value for test, should be 'Flat Basic'
|
|
1399
1399
|
var ui5ControlProperties = {
|
|
1400
1400
|
"elementProperties": { "metadata": "sap.m.ObjectAttribute", "mProperties": { "title": "Supplier", "text": "Very Best Screens" } },
|
|
@@ -1411,7 +1411,7 @@ describe("filters1", function () {
|
|
|
1411
1411
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1412
1412
|
});
|
|
1413
1413
|
|
|
1414
|
-
it("
|
|
1414
|
+
it("Step 79: check if Supplier text exists wrong prevSibiling property", async function () {
|
|
1415
1415
|
// "number": "399" - wring value for test purposes, should be "number": "399,00",
|
|
1416
1416
|
var ui5ControlProperties = {
|
|
1417
1417
|
"elementProperties": { "metadata": "sap.m.ObjectAttribute", "mProperties": { "title": "Supplier", "text": "Very Best Screens" } },
|
|
@@ -1428,7 +1428,7 @@ describe("filters1", function () {
|
|
|
1428
1428
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1429
1429
|
});
|
|
1430
1430
|
|
|
1431
|
-
it("
|
|
1431
|
+
it("Step 80: check if Supplier text exists wrong nextSibiling property", async function () {
|
|
1432
1432
|
// "state": "Suckscess" - wrong value for test purposes
|
|
1433
1433
|
var ui5ControlProperties = {
|
|
1434
1434
|
"elementProperties": { "metadata": "sap.m.ObjectAttribute", "mProperties": { "title": "Supplier", "text": "Very Best Screens" } },
|
|
@@ -1445,7 +1445,7 @@ describe("filters1", function () {
|
|
|
1445
1445
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1446
1446
|
});
|
|
1447
1447
|
|
|
1448
|
-
it("
|
|
1448
|
+
it("Step 81: check if Supplier text exists remove childproperties", async function () {
|
|
1449
1449
|
var ui5ControlProperties = {
|
|
1450
1450
|
"elementProperties": { "metadata": "sap.m.ObjectAttribute", "mProperties": { "title": "Supplier", "text": "Very Best Screens" } },
|
|
1451
1451
|
"parentProperties": { "metadata": "sap.m.ObjectHeader", "mProperties": { "titleLevel": "H3", "numberUnit": "EUR", "title": "Flat Basic", "number": "399,00" } },
|
|
@@ -1459,7 +1459,7 @@ describe("filters1", function () {
|
|
|
1459
1459
|
|
|
1460
1460
|
});
|
|
1461
1461
|
|
|
1462
|
-
it("
|
|
1462
|
+
it("Step 82: check if Supplier i18n path is correct", async function () {
|
|
1463
1463
|
var ui5ControlProperties = {
|
|
1464
1464
|
"elementProperties": {
|
|
1465
1465
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1483,7 +1483,7 @@ describe("filters1", function () {
|
|
|
1483
1483
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1484
1484
|
});
|
|
1485
1485
|
|
|
1486
|
-
it("
|
|
1486
|
+
it("Step 83: check if Supplier context path is correct", async function () {
|
|
1487
1487
|
var ui5ControlProperties = {
|
|
1488
1488
|
"elementProperties": {
|
|
1489
1489
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1501,7 +1501,7 @@ describe("filters1", function () {
|
|
|
1501
1501
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index, 0, 30000);
|
|
1502
1502
|
});
|
|
1503
1503
|
|
|
1504
|
-
it("
|
|
1504
|
+
it("Step 84: check if Supplier i18n path is correct remove model name", async function () {
|
|
1505
1505
|
var ui5ControlProperties = {
|
|
1506
1506
|
"elementProperties": {
|
|
1507
1507
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1525,7 +1525,7 @@ describe("filters1", function () {
|
|
|
1525
1525
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1526
1526
|
});
|
|
1527
1527
|
|
|
1528
|
-
it("
|
|
1528
|
+
it("Step 85: check if Supplier i18n path is correct wrong binding context", async function () {
|
|
1529
1529
|
var ui5ControlProperties = {
|
|
1530
1530
|
"elementProperties": {
|
|
1531
1531
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1544,7 +1544,7 @@ describe("filters1", function () {
|
|
|
1544
1544
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1545
1545
|
});
|
|
1546
1546
|
|
|
1547
|
-
it("
|
|
1547
|
+
it("Step 86: check if Supplier i18n path is correct wrong binding path name", async function () {
|
|
1548
1548
|
var ui5ControlProperties = {
|
|
1549
1549
|
"elementProperties": {
|
|
1550
1550
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1565,7 +1565,7 @@ describe("filters1", function () {
|
|
|
1565
1565
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1566
1566
|
});
|
|
1567
1567
|
|
|
1568
|
-
it("
|
|
1568
|
+
it("Step 87: check if Supplier i18n path is correct no model defined", async function () {
|
|
1569
1569
|
var ui5ControlProperties = {
|
|
1570
1570
|
"elementProperties": {
|
|
1571
1571
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1587,7 +1587,7 @@ describe("filters1", function () {
|
|
|
1587
1587
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
|
-
it("
|
|
1590
|
+
it("Step 88: check if Supplier i18n path is correct not array", async function () {
|
|
1591
1591
|
var ui5ControlProperties = {
|
|
1592
1592
|
"elementProperties": {
|
|
1593
1593
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1611,7 +1611,7 @@ describe("filters1", function () {
|
|
|
1611
1611
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1612
1612
|
});
|
|
1613
1613
|
|
|
1614
|
-
it("
|
|
1614
|
+
it("Step 89: check if Supplier i18n path is correct only binding path", async function () {
|
|
1615
1615
|
var ui5ControlProperties = {
|
|
1616
1616
|
"elementProperties": {
|
|
1617
1617
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1629,7 +1629,7 @@ describe("filters1", function () {
|
|
|
1629
1629
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1630
1630
|
});
|
|
1631
1631
|
|
|
1632
|
-
it("
|
|
1632
|
+
it("Step 90: check if Supplier i18n path is correct only i18n text key", async function () {
|
|
1633
1633
|
var ui5ControlProperties = {
|
|
1634
1634
|
"elementProperties": {
|
|
1635
1635
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1647,7 +1647,7 @@ describe("filters1", function () {
|
|
|
1647
1647
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1648
1648
|
});
|
|
1649
1649
|
|
|
1650
|
-
it("
|
|
1650
|
+
it("Step 91: check if Supplier i18n path is correct bindings as array", async function () {
|
|
1651
1651
|
var ui5ControlProperties = {
|
|
1652
1652
|
"elementProperties": {
|
|
1653
1653
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1671,7 +1671,7 @@ describe("filters1", function () {
|
|
|
1671
1671
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1672
1672
|
});
|
|
1673
1673
|
|
|
1674
|
-
it("
|
|
1674
|
+
it("Step 92: check if Supplier i18n path is wrong bindings as array", async function () {
|
|
1675
1675
|
var ui5ControlProperties = {
|
|
1676
1676
|
"elementProperties": {
|
|
1677
1677
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1698,7 +1698,7 @@ describe("filters1", function () {
|
|
|
1698
1698
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1699
1699
|
});
|
|
1700
1700
|
|
|
1701
|
-
it("
|
|
1701
|
+
it("Step 93: check if Weight i18n path is correct and previous or next is correct", async function () {
|
|
1702
1702
|
var ui5ControlProperties = {
|
|
1703
1703
|
"elementProperties": {
|
|
1704
1704
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1742,7 +1742,7 @@ describe("filters1", function () {
|
|
|
1742
1742
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1743
1743
|
});
|
|
1744
1744
|
|
|
1745
|
-
it("
|
|
1745
|
+
it("Step 94: check if product measure is correct", async function () {
|
|
1746
1746
|
var ui5ControlProperties = {
|
|
1747
1747
|
"elementProperties": {
|
|
1748
1748
|
"metadata": "sap.m.ObjectAttribute", "mProperties": {
|
|
@@ -1764,7 +1764,7 @@ describe("filters1", function () {
|
|
|
1764
1764
|
await ui5.assertion.expectBindingContextPathToBe(ui5ControlProperties, "/Products('HT-1035')", Index);
|
|
1765
1765
|
});
|
|
1766
1766
|
|
|
1767
|
-
it("
|
|
1767
|
+
it("Step 95: check if product measure is correct with bindingpath on children element", async function () {
|
|
1768
1768
|
var ui5ControlProperties = {
|
|
1769
1769
|
"elementProperties": {
|
|
1770
1770
|
"metadata": "sap.m.ObjectHeader", "mProperties": {
|
|
@@ -1790,7 +1790,7 @@ describe("filters1", function () {
|
|
|
1790
1790
|
await ui5.assertion.expectAttributeToBe(ui5ControlProperties, attribute, compareValue, Index);
|
|
1791
1791
|
});
|
|
1792
1792
|
|
|
1793
|
-
it("
|
|
1793
|
+
it("Step 96: check if product measure is correct with wrong bindingpath on children element", async function () {
|
|
1794
1794
|
var ui5ControlProperties = {
|
|
1795
1795
|
"elementProperties": {
|
|
1796
1796
|
"metadata": "sap.m.ObjectHeader", "mProperties": {
|
|
@@ -1818,7 +1818,7 @@ describe("filters1", function () {
|
|
|
1818
1818
|
.rejects.toThrow(/No visible elements found with selector/);
|
|
1819
1819
|
});
|
|
1820
1820
|
|
|
1821
|
-
it("
|
|
1821
|
+
it("Step 97: check if product measure is correct with number bindingpath", async function () {
|
|
1822
1822
|
var ui5ControlProperties = {
|
|
1823
1823
|
"elementProperties": {
|
|
1824
1824
|
"metadata": "sap.m.ObjectHeader", "mProperties": {
|