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

25 lines (21 loc) 896 B
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("userInteraction - moveCursorAndClick - chart tests", function () { it("Preparation", async function () { await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.viz.ui5.controls.VizFrame/sample/sap.viz.sample.Donut`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { const elem = await nonUi5.element.getByCss("g:nth-child(1) > g:nth-child(7)"); await nonUi5.userInteraction.moveCursorAndClick(elem); }); it("Verification", async function () { const selector = { elementProperties: { metadata: "sap.viz.ui5.controls.chartpopover.ContentPanel" } }; await ui5.element.getDisplayed(selector); }); });