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

23 lines (19 loc) 867 B
"use strict"; const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("element - getById + expectToBeVisible", function () { it("Preparation", async function () { await common.navigation.navigateToUrl(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`); await handleCookiesConsent(); }); it("Execution", async function () { const elem = await nonUi5.element.getByCss("SPAN[id='container-cart---homeView--page-title-inner']"); await nonUi5.element.setInnerHTML(elem, "Hello World!"); }); it("Verification", async function () { const elem = await nonUi5.element.getByCss("SPAN[id='container-cart---homeView--page-title-inner']"); await nonUi5.assertion.expectValueToBe(elem, "Hello World!"); }); });