@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
22 lines (18 loc) • 974 B
JavaScript
;
const { handleCookiesConsent } = require("../../../helper/utils");
describe("userInteraction - Double click on Switch button", async function () {
it("Preparation", async function () {
await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.96.27/#/entity/sap.m.Select/sample/sap.m.sample.Select");
await handleCookiesConsent();
});
it("Execution", async function () {
await util.browser.sleep(5000);
const elem = await nonUi5.element.getByCss("SECTION:nth-child(2) > DIV:nth-child(1) > DIV:nth-child(2) > DIV:nth-child(1) > DIV:nth-child(2) > DIV:nth-child(1) > DIV:nth-child(1)");
await nonUi5.userInteraction.doubleClick(elem);
});
it("Verification", async function () {
await util.browser.sleep(5000);
const elem = await nonUi5.element.getByCss("DIV[class='sapMSlt sapMSltDefault sapMSltMinWidth sapMSltHoverable sapMSltWithArrow']");
await nonUi5.assertion.expectToBeVisible(elem);
});
});