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

61 lines (50 loc) 1.77 kB
"use strict"; const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("table - clickSettingsButton - smartTable", function () { it("Preparation", async function () { await browser.url(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { await ui5.table.clickSettingsButton(); }); it("Verification", async function () { const selector = { "elementProperties": { "viewName": "sap.ui.comp.sample.smarttable.mtable.SmartTable", "metadata": "sap.m.Dialog", "title": "View Settings" } }; await ui5.assertion.expectToBeVisible(selector); }); }); describe("table - clickSettingsButton - smartTable with tableSelector", function () { const tableSelector = { "elementProperties": { "metadata": "sap.ui.comp.smarttable.SmartTable" } }; it("Preparation", async function () { await browser.url(`${BASE_URL}/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sample.smarttable.mtable`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { await ui5.table.clickSettingsButton(tableSelector); }); it("Verification", async function () { const selector = { "elementProperties": { "viewName": "sap.ui.comp.sample.smarttable.mtable.SmartTable", "metadata": "sap.m.Dialog", "title": "View Settings" } }; await ui5.assertion.expectToBeVisible(selector); }); });