Skip to content

nicopado/playwright-bdd

 
 

Repository files navigation

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 v6 is out! Check out Cucumber reporters and share your 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:

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

Extras

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

Documentation

Check out documentation website.

Example

Fork and play with playwright-bdd-example repo.

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

Currents.devArturs Leščinskis

How to make BDD valuable for my project?

Have a look on this section.

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.2%
  • JavaScript 15.2%
  • Gherkin 7.4%
  • Other 0.2%