UNPKG

@sap_oss/wdio-qmate-service

Version:

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/wdio-qmate-service)](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[![Node.js CI](https://github.com/SAP/wdio-qmate-service/actions/workflows/node.js.yml/badge.svg)](http

34 lines (31 loc) 1.25 kB
"use strict"; describe("getPropertyBinding - check title path is CategoryName", async () => { let aBindings, aBindingsSelector, aBindingsSelectorOptions; it("Preparation", async () => { const url = await util.browser.getBaseUrl(); await common.navigation.navigateToUrl(url); }); it("Execution", async () => { const selector = { "elementProperties": { "metadata": "sap.m.StandardListItem", "mProperties": { "viewId": "container-cart---app", "title": [{ "path": "CategoryName" }], "bindingContextPath": "/ProductCategories*" } } }; const elem = await ui5.element.getDisplayed(selector); aBindings = await ui5.control.getPropertyBinding(elem, "title"); aBindingsSelector = await ui5.control.getPropertyBinding(selector, "title"); aBindingsSelectorOptions = await ui5.control.getPropertyBinding({selector: selector, index: 0, timeout: 30000}, "title"); }); it("Verification", () => { common.assertion.expectEqual(aBindings[0].path, "CategoryName"); common.assertion.expectEqual(aBindingsSelector[0].path, "CategoryName"); common.assertion.expectEqual(aBindingsSelectorOptions[0].path, "CategoryName"); }); });