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.
24 lines (23 loc) • 710 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.When_I_debug_with_message = When_I_debug_with_message;
// e2e/step_definitions/common/actions/debugSteps.ts
const cucumber_1 = require("@cucumber/cucumber");
/**
* Pauses the test execution for debugging with a custom message.
*
* ```gherkin
* When I debug with message {string}
* ```
*
* @example
* ```gherkin
* When I debug with message "Check login form"
* ```
* @category Debug Steps
*/
async function When_I_debug_with_message(message) {
await this.page.pause();
this.log?.(`Paused test for debugging: ${message}`);
}
(0, cucumber_1.When)("I debug with message {string}", When_I_debug_with_message);