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

40 lines (36 loc) 1.31 kB
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("userInteraction - selectFromTab", function () { it("Preparation", async function () { await browser.navigateTo(`${BASE_URL}/#/api/sap.m.IconTabBar`); await handleCookiesConsent(); }); it("Execution", async function () { const selector = { elementProperties: { viewName: "sap.ui.documentation.sdk.view.SubApiDetail", metadata: "sap.m.IconTabFilter", text: "Events" } }; const value = "expand"; const index = 0; const timeout = 30000; await ui5.userInteraction.selectFromTab(selector, value, index, timeout); }); it("Verification", async function () { const selector = { elementProperties: { viewName: "sap.ui.documentation.sdk.view.SubApiDetail", metadata: "sap.ui.documentation.JSDocText", text: "*<p>Indicates that the tab will expand or collapse.<br><br><i>Since: 1.15.0.</i></p>*" }, ancestorProperties: { metadata: "sap.ui.documentation.ObjectPageSubSection", viewName: "sap.ui.documentation.sdk.view.SubApiDetail", title: "expand" } }; await ui5.assertion.expectToBeVisible(selector); }); });