Home
Softono
playwright-bdd

playwright-bdd

Open source MIT TypeScript
703
Stars
84
Forks
48
Issues
21
Watchers
1 week
Last Commit

About playwright-bdd

BDD testing with Playwright runner

Platforms

Web Self-hosted

Languages

TypeScript

Playwright-BDD

Run BDD tests with Playwright runner

lint test npm version npm downloads license

🚀 Getting Started  📚 Documentation  ▶️ Example  📝 Changelog

Why BDD in the Era of AI?

Behavior-Driven Development (BDD) describes requirements through Given / When / Then steps, giving AI agents a clear, executable target. These steps are easy to read and refine during planning. They set practical constraints for generated code. They run as tests and stay aligned with the implementation over time, unlike plain markdown specs that tend to grow into walls of text.

Try the playwright-bdd skill to bring the agentic BDD workflow into your project.

Why Playwright Runner?

Playwright can be used as a browser automation library with any test runner, such as CucumberJS or Vitest. However, it is most powerful when used with the Playwright test runner. Playwright-BDD converts BDD scenarios into native Playwright tests, so you get all Playwright runner features out of the box:

  • Automatic browser setup and cleanup
  • Auto-waiting for page elements
  • Auto-capture of screenshots, videos, and traces
  • Parallel execution and sharding
  • Built-in reports and visual comparison testing
  • Playwright fixtures
  • ...and more

How It Works

Extras

Playwright-BDD has several unique features:

Documentation

Check out the documentation website.

Demos

Playwright Versions Support

playwright-bdd supports all non-deprecated versions of Playwright. To check which Playwright versions are currently deprecated, run:

npm show @playwright/test@1 deprecated

Changelog

Check out the latest changes in the CHANGELOG.md.

💖 Sponsors

Great thanks to the amazing people and companies already supporting Playwright-BDD! Your help keeps the project alive and growing:

Currents

TestMu AI

User avatar: Arturs LeščinskisUser avatar: User avatar: Francesco Borzì

If you find Playwright-BDD useful in your personal or work projects, consider becoming a sponsor. Even small contributions help me dedicate more time to maintenance, new features, and community support.

Feedback & Community

Feel free to report a bug, propose a feature or share your experience:

Contributing

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

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! 🎉