Home

Awesome

playwright-bdd

lint test npm version npm downloads license

Run BDD tests with Playwright runner.

Inspired by the issue in the Playwright repo microsoft/playwright#11975

[!TIP] Playwright-bdd v7.0 RC is out! Dropped Cucumber package dependency, simplified configuration and other improvements. Try it out and share the feedback!

Why Playwright runner?

Both Playwright and CucumberJS have their own test runners. You can use CucumberJS runner with Playwright as a library to test BDD scenarios. This package offers an alternative way: convert BDD scenarios into Playwright tests and run them with Playwright runner as usual. Such approach brings all the benefits of Playwright runner:

Extras

Some features were developed in playwright-bdd on top of Playwright and BDD approaches:

Documentation

Check out documentation website.

Examples

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

Feedback

Feel free to share your feedback in issues.

Changelog

Inspect the latest changes in the CHANGELOG.md.

Contributing

Your contributions are welcome! Review DEVELOPMENT.md for playwright-bdd local setup and development.

Sponsors

Great thanks to the sponsors for supporting playwright-bdd project ❤️ Become a sponsor

<!-- sponsors --><a href="https://github.com/currents-dev"><img src="https://github.com/currents-dev.png" width="60px" alt="Currents.dev" /></a><a href="https://github.com/jzaratei"><img src="https://github.com/jzaratei.png" width="60px" alt="" /></a><a href="https://github.com/NikkTod"><img src="https://github.com/NikkTod.png" width="60px" alt="" /></a><a href="https://github.com/alescinskis"><img src="https://github.com/alescinskis.png" width="60px" alt="Arturs Leščinskis" /></a><a href="https://github.com/kahuna227"><img src="https://github.com/kahuna227.png" width="60px" alt="" /></a><a href="https://github.com/alexhvastovich"><img src="https://github.com/alexhvastovich.png" width="60px" alt="" /></a><!-- sponsors -->

How to make BDD valuable for my project?

Have a look on this section.

License

MIT