UNPKG

playwright-cucumber-ts-steps

Version:

A collection of reusable Playwright step definitions for Cucumber in TypeScript, designed to streamline end-to-end testing across web, API, and mobile applications.

25 lines (24 loc) 1.45 kB
import type { DataTable } from "@cucumber/cucumber"; import type { Locator } from "@playwright/test"; type ClickOptions = Parameters<Locator["click"]>[0]; type DblClickOptions = Parameters<Locator["dblclick"]>[0]; type HoverOptions = Parameters<Locator["hover"]>[0]; type FillOptions = Parameters<Locator["fill"]>[1]; type TypeOptions = Parameters<Locator["type"]>[1]; type CheckOptions = Parameters<Locator["check"]>[0]; type UncheckOptions = Parameters<Locator["uncheck"]>[0]; type SelectOptionOptions = Parameters<Locator["selectOption"]>[1]; export declare function parseClickOptions(table?: DataTable): Partial<ClickOptions>; export declare function parseDblClickOptions(table?: DataTable): Partial<DblClickOptions>; export declare function parseHoverOptions(table?: DataTable): Partial<HoverOptions>; export declare function parseTypeOptions(table?: DataTable): Partial<TypeOptions>; export declare function parseFillOptions(table?: DataTable): Partial<FillOptions>; export declare function parseCheckOptions(table?: DataTable): Partial<CheckOptions>; export declare function parseUncheckOptions(table?: DataTable): Partial<UncheckOptions>; export declare function parseSelectOptions(table?: DataTable): Partial<SelectOptionOptions>; export declare function parseGenericOptions(table?: DataTable): Record<string, any>; export declare function parseExpectOptions(table?: DataTable): { timeout?: number; log?: boolean; }; export {};