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

107 lines (72 loc) 2.4 kB
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); // TODO: add some assertions describe("userInteraction - pressKey - single key - key value", function () { it("Execution", async function () { await common.userInteraction.pressKey("Enter"); }); }); describe("userInteraction - pressKey - single key - codepoint", function () { it("Execution", async function () { await common.userInteraction.pressKey("\uE007"); }); }); describe("userInteraction - pressKey - multiple keys", function () { it("Execution", async function () { await common.userInteraction.pressKey(["\uE007", "\uE004"]); }); }); describe("userInteraction - pressEnter", function () { it("Execution", async function () { await common.userInteraction.pressEnter(); }); }); describe("userInteraction - pressF4", function () { it("Execution", async function () { await common.userInteraction.pressF4(); }); }); describe("userInteraction - pressTab", function () { it("Execution", async function () { await common.userInteraction.pressTab(); }); }); describe("userInteraction - pressBackspace", function () { it("Execution", async function () { await common.userInteraction.pressBackspace(); }); }); describe("userInteraction - pressArrowLeft", function () { it("Execution", async function () { await common.userInteraction.pressArrowLeft(); }); }); describe("userInteraction - pressArrowRight", function () { it("Execution", async function () { await common.userInteraction.pressArrowRight(); }); }); describe("userInteraction - pressEscape", function () { it("Execution", async function () { await common.userInteraction.pressEscape(); }); }); describe("userInteraction - selectAll", function () { it("Preparation", async function () { await browser.navigateTo(`${BASE_URL}/#/entity/sap.m.Input/sample/sap.m.sample.InputValueState`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { const selector = { "elementProperties": { "viewName": "sap.m.sample.InputValueState.V", "metadata": "sap.m.Input", "value": "Value state None" } }; await ui5.userInteraction.selectAll(selector); }); });