Skip to content

vitalets/playwright-bdd

Repository files navigation

Playwright-BDD

lint test npm version npm downloads license

Run BDD tests with Playwright runner

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 test files and run them with Playwright runner. 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 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

Huge thanks to the sponsors of the Playwright-BDD project ❤️ Become a sponsor

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

How to make BDD valuable for my project?

Have a look on this section.

My other Playwright tools

License

MIT