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

36 lines (27 loc) 1.18 kB
"use strict"; describe("element - waitToBeVisible", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("http://localhost:34005/waitForElements.html"); }); it("Execution & Verification", async function () { await nonUi5.element.waitToBeVisible("BUTTON", 30000); }); }); describe("element - waitToBeVisible - wrong selector (error case)", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("http://localhost:34005/waitForElements.html"); }); it("Execution & Verification", async function () { await expect(nonUi5.element.waitToBeVisible("BUTTON[class='wrong']", 1000)) .rejects.toThrow("Function 'waitToBeVisible' failed"); }); }); describe("element - waitToBeVisible - invisible selector (error case)", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("http://localhost:34005/hiddenAndVisible.html"); }); it("Execution & Verification", async function () { await expect(nonUi5.element.waitToBeVisible("P[id='hiddenParagraph']", 1000)) .rejects.toThrow("Function 'waitToBeVisible' failed"); }); });