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

24 lines (18 loc) 911 B
"use strict"; const { handleCookiesConsent } = require("../../../helper/utils"); describe("userInteraction - clickElementInSvg - UI5 SVG Chart", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/#/entity/sap.suite.ui.commons.ChartContainer/sample/sap.suite.ui.commons.sample.ChartContainerToolbarEnhancement"); await handleCookiesConsent(); }); it("Execution", async function () { await util.browser.switchToIframe("IFRAME[id='sampleFrame']"); const svgElem = await nonUi5.element.getByCss("svg"); const innerSelector = "g[data-id='4']"; await nonUi5.userInteraction.clickElementInSvg(svgElem, innerSelector); }); it("Verification", async function () { const isPresent = await nonUi5.element.isPresentByCss("path[fill-opacity='1']"); await common.assertion.expectTrue(isPresent); }); });