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.
19 lines (18 loc) • 589 B
TypeScript
/**
* @step
* @description Sets a cookie with the given name and value for the current domain.
* @example
* When I set cookie "session_id" to "abc123"
* @remarks
* The cookie is set for the current page's domain and path "/".
* @category Cookie Steps
*/
export declare function When_I_set_cookie(this: any, name: string, value: string): Promise<void>;
/**
* @step
* @description Gets a cookie value by name and logs it.
* @example
* When I get cookie "session_id"
* @category Cookie Steps
*/
export declare function When_I_get_cookie(this: any, name: string): Promise<void>;