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 (24 loc) 1 kB
> Related Topics: [Features ❯ Spec](../features/config.md) | [Features ❯ Selectors](../features/selectors.md) ## Sample Inside the *.spec.js* file, you define the sequence of steps for your test script. Each file consists of at least one *describe* block. ```js title="clickGoOnListReport.spec.js" describe("clickGoOnListReport - click 'Go' on ListReport", function () { it("Step 01: Navigate to your application", async function () { await ui5.navigation.navigateToApplication("PurchaseOrder-manage") }); it("Step 02: Navigate", async function () { await ui5.session.login("JOHNDOE", "Greetings1!"); }); it("Step 03: Click 'Go' on ListReport", async function () { const selector = { "elementProperties": { "viewName": "sap.suite.ui.generic.template.ListReport.view.ListReport", "metadata": "sap.m.Button", "id": "*listReportFilter-btnGo" } }; await ui5.userInteraction.click(selector); }); // ... }); ```