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 (24 loc) 972 B
"use strict"; const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("browser - switchToDefaultContent", function () { const dialogSelector = { "elementProperties": { "viewName": "sap.m.sample.Dialog.V", "metadata": "sap.m.Button", "text": "Dialog (Fixed Size)" } }; it("Preparation", async function () { //keep latest demo kit version due to iframes here await common.navigation.navigateToUrl(`${BASE_URL}/#/entity/sap.m.Dialog/sample/sap.m.sample.Dialog`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { await util.browser.switchToDefaultContent(); }); it("Verification", async function () { await expect(ui5.element.getDisplayed(dialogSelector)).rejects.toThrow(/No visible elements found/); }); });