A BDD test automation framework combining Cucumber for behavior-driven development and Playwright for cross-browser web automation. Current version 0.1.0-beta.53, pre-release with frequent updates. Offers pre-built step definitions for common actions (navigation, authentication, element interactions) and generates HTML reports. Differentiates from other BDD frameworks by tightly integrating Playwright's modern API with Cucumber's Gherkin syntax, supporting multiple protocols and auto-waiting. Requires Node >= 16 and peer dependencies @cucumber/cucumber ^9.0.0, @playwright/test 1.40.0, playwright 1.40.0, and reporting tools.
npm install cucumber-playwright-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scaffolds a new BDD project using the framework, runs tests, and generates an HTML report.
Pin @cucumber/cucumber to ^9.x or check for framework updates.
Use exactly '(open|opens)' with parentheses; do not use alternatives without parentheses.
Set 'esModuleInterop': true and 'moduleResolution': 'node' (or 'node16') in tsconfig.json.
Ensure both 'playwright' and '@playwright/test' are exactly 1.40.0 in package.json.
Create a cucumber-html-reporter config file or use the default report path.
Run: npm install @cucumber/cucumber@^9.0.0
Use named import: import { stepOpenLandingPageOfAppUsingConfig } from 'cucumber-playwright-framework'Run: npm install @playwright/test@1.40.0
Use: Given the user (open|opens) the "home" page of the "app" app