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

37 lines (29 loc) 1.06 kB
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); const { handleCookiesConsent } = require("../../../helper/utils"); describe("userInteraction - dragAndDrop", function () { const sourceSelector = { "elementProperties": { "viewName": "sap.f.sample.GridListDragAndDrop.V", "metadata": "sap.f.GridListItem", "bindingContextPath": "/items/0" } }; const targetSelector = { "elementProperties": { "viewName": "sap.f.sample.GridListDragAndDrop.V", "metadata": "sap.f.GridListItem", "bindingContextPath": "/items/5" } }; it("Preparation", async function () { await common.navigation.navigateToUrl(`${BASE_URL}/sdk/#/entity/sap.f.GridList/sample/sap.f.sample.GridListDragAndDrop`); await handleCookiesConsent(); await util.browser.switchToIframe("[id='sampleFrame']"); }); it("Execution", async function () { await ui5.userInteraction.dragAndDrop(sourceSelector, targetSelector, 0, 0, 1000); }); it("Verification", async function () { // TODO }); });