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

30 lines (25 loc) 854 B
"use strict"; const { handleCookiesConsent } = require("../../../helper/utils"); describe("errorDialog - expectToBeVisible", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.96.27/#/entity/sap.m.Dialog/sample/sap.m.sample.DialogMessage"); await handleCookiesConsent(); }); it("Execution", async function () { await expect(ui5.errorDialog.expectToBeVisible()) .rejects.toThrow(/No visible elements/); const selector = { "elementProperties": { "viewName": "sap.m.sample.DialogMessage.V", "metadata": "sap.m.Button", "text": "Message Dialog (Error)" } }; await ui5.userInteraction.click(selector); }); it("Verification", async function () { await ui5.errorDialog.expectToBeVisible(); }); });