You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

playwright-bdd

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-bdd

BDD Testing with Playwright runner

8.3.1
latest
Source
npmnpm
Version published
Weekly downloads
90K
2%
Maintainers
1
Weekly downloads
 
Created
Source
playwright-bdd

Playwright-BDD

lint test npm version npm downloads license

Run BDD tests with Playwright runner

[!TIP] Try out Fix with AI button in HTML reporters

Why BDD?

In the era of AI, you can take BDD approach to the next level:

  • 🤖 Generate: Drop business requirements into an AI chat and instantly generate feature files.
  • Validate: Refine the generated scenarios with AI or colleagues, collaborate in plain text instead of code.
  • 🛠 Automate: Use existing steps to run the tests and prevent codebase growth.

Why Playwright Runner?

Both Playwright and CucumberJS have their own test runners. You can use the CucumberJS runner with Playwright as a library to execute BDD scenarios. This package offers an alternative: convert BDD scenarios into test files and run them directly with Playwright. You gain all the advantages of the Playwright runner:

  • Automatic browser initialization and cleanup
  • Auto-capture of screenshots, videos, and traces
  • Parallelization with sharding
  • Auto-waiting for page elements
  • Built-in visual comparison testing
  • Power of Playwright fixtures
  • ...and more

Extras

Playwright-BDD extends Playwright with BDD capabilities, offering:

Documentation

Check out the documentation website.

Examples

There are several examples in examples folder and a separate fully working repo playwright-bdd-example.

Community

Feel free to get in touch:

Changelog

Check out the latest changes in the CHANGELOG.md.

Contributing

Your contributions are welcome! Please review CONTRIBUTING.md for the details.

Sponsors

Many thanks to our sponsors for their generous support ❤️ Become a sponsor

User avatar: Currents.devUser avatar: User avatar: Arturs LeščinskisUser avatar: User avatar: User avatar: Francesco Borzì

How to make BDD valuable for my project?

Have a look on this section.

My other Playwright tools

License

This project is licensed under the MIT License, allowing you to use, modify, and share the code freely, even for commercial purposes. Enjoy building something amazing! 🎉

Keywords

playwright

FAQs

Package last updated on 20 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts