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

31 lines (27 loc) 1.06 kB
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("userInteraction - clearAndFillSmartFieldInputAndRetry", function () { it("Preparation", async function () { await browser.navigateTo(`${BASE_URL}/#/entity/sap.ui.comp.smartfield.SmartField/sample/sap.ui.comp.sample.smartfield.Overview`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution & Verification", async function () { const selector = { "elementProperties": { "viewName": "sap.ui.comp.sample.smartfield.Overview.Main", "metadata": "sap.m.Input", "id": "*idWhitespace-input" } }; const value = "smart field with spaces"; const index = 0; const timeout = 30000; const retries = 2; const interval = 2000; const verify = true; await ui5.userInteraction.clearAndFillSmartFieldInputAndRetry(selector, value, index, timeout, retries, interval, verify); }); });