dev.club โ€” where best developers and top companies connect.

dev.club โ€” where best developers and top companies connect.Invite only

Request invite
playwright-bdd

Playwright-BDD

Run BDD tests with Playwright runner

lint test npm version npm downloads license

๐Ÿš€ Getting Started  ๐Ÿ“š Documentation  โ–ถ๏ธ Example  ๐Ÿ“ Changelog

BDD in the Era of AI

Behavior-Driven Development (BDD) describes product requirements as Given / When / Then scenarios written in .feature files. These scenarios are valuable artifacts for AI agents because they are both:

Unlike plain markdown specs, BDD does not just describe the feature; it makes the spec live and keeps it aligned with the codebase.

Install the playwright-bdd skill and check out the blog post on using BDD in agentic workflows.

Feature: Agentic development

  Scenario: Implement a new feature
    Given business requirements
    When a human defines the behavior as BDD steps
-   Then the human implements the feature and verifies it with tests
+   Then the agent implements the feature and verifies it with tests

Why Playwright Runner?

Playwright provides both browser automation APIs and a powerful test runner. Playwright-BDD converts .feature files into native Playwright tests, so you can use all Playwright runner capabilities:

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.

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! ๐ŸŽ‰

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.