@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
30 lines (24 loc) • 972 B
JavaScript
;
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/);
});
});