KO
|
EN
gitlite — search
Search
#ai-agent
#python
#dsh-plugin
#mcp-server
#agentic-ai
#automation
#genpark
#llm-tools
#deepseek-harness
#ai-agents
#dsh
#claude-code
playwright-bdd
★ 757
Open GitHub ↗
BDD testing with Playwright runner
Download README (.md)
Explore Similar Repositories
oxyde
:
Oxyde ORM is a type-safe, Pydantic-centric asynchronous ORM with a high-performance Rust core designed for clarity, speed, and reliability.
bpfman
:
An eBPF Manager for Linux and Kubernetes
datavines
:
Know your data better!Datavines is Next-gen Data Observability Platform, support metadata manage and data quality.
TheIdServer
:
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
simple_tensorflow_serving
:
Generic and easy-to-use serving service for machine learning models
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
playwright-bdd
?
Download (.md)
<div align="center"> <a href="https://vitalets.github.io/playwright-bdd"> <img width="128" alt="playwright-bdd" src="./docs/logo.svg"> </a> </div> <h2 align="center">Playwright-BDD</h2> <div align="center"> Run BDD tests with Playwright runner </div> <div align="center"> [](https://github.com/vitalets/playwright-bdd/actions/workflows/lint.yaml) [](https://github.com/vitalets/playwright-bdd/actions/workflows/test.yaml) [](https://www.npmjs.com/package/playwright-bdd) [](https://www.npmjs.com/package/playwright-bdd) [](https://github.com/vitalets/playwright-bdd/blob/main/LICENSE) </div> <p align="center"> 🚀 <a href="https://vitalets.github.io/playwright-bdd/#/getting-started/index">Getting Started</a> 📚 <a href="https://vitalets.github.io/playwright-bdd/">Documentation</a> ▶️ <a href="https://github.com/vitalets/playwright-bdd-example">Example</a> 📝 <a href="https://github.com/vitalets/playwright-bdd/blob/main/CHANGELOG.md">Changelog</a> </p> ## BDD in the Era of AI [Behavior-Driven Development (BDD)](https://cucumber.io/docs/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 **readable** and **executable**. You can refine them during planning to provide the agent with a clear goal. Once the code is written, the agent runs the same scenarios as tests to verify the implementation. Unlike plain markdown specs, BDD does not just describe the behavior; it makes the spec live and keeps it aligned with the codebase. Install the [playwright-bdd skill](https://vitalets.github.io/playwright-bdd/#/getting-started/agent-skill) and check out the [blog post](https://vitalets.github.io/posts/bdd-agentic-workflow/) on using BDD in agentic workflows. ## Why Playwright Runner? Playwright can be used as a [browser automation library](https://playwright.dev/docs/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](https://playwright.dev/docs/library#key-differences) ## How It Works <img align="center" src="https://raw.githubusercontent.com/vitalets/playwright-bdd/refs/heads/main/docs/_media/schema.png"/> ## Extras Playwright-BDD has several unique features: - 🔥 Advanced tagging [by path](https://vitalets.github.io/playwright-bdd/#/writing-features/tags-from-path) and [special tags](https://vitalets.github.io/playwright-bdd/#/writing-features/special-tags) - 🎩 [Step decorators](https://vitalets.github.io/playwright-bdd/#/writing-steps/decorators) for class methods - 🎯 [Scoped step definitions](https://vitalets.github.io/playwright-bdd/#/writing-steps/scoped) - ✨ [Exporting steps](https://vitalets.github.io/playwright-bdd/#/writing-features/chatgpt) for AI - ♻️ [Re-usable step functions](https://vitalets.github.io/playwright-bdd/#/writing-steps/reusing-step-fn) ## Documentation Check out the [documentation website](https://vitalets.github.io/playwright-bdd/#/). ## Demos - Check out [`examples`](/examples) folder - Clone the fully working repo: [playwright-bdd-example](https://github.com/vitalets/playwright-bdd-example) ## Playwright Versions Support `playwright-bdd` supports all **non-deprecated** versions of Playwright. To check which Playwright versions are currently deprecated, run: ```bash npm show @playwright/test@1 deprecated ``` ## Changelog Check out the latest changes in the [CHANGELOG.md](https://github.com/vitalets/playwright-bdd/blob/main/CHANGELOG.md). ## 💖 Sponsors Great thanks to the **amazing people and companies** already supporting Playwright-BDD! Your help keeps the project alive and growing: <p align="center"> <a href="https://currents.dev/" target="_blank"> <img src="./docs/_media/sponsors/currents.svg" alt="Currents" width="300" /> </a> </p> <p align="center"> <a href="https://www.testmuai.com/?utm_medium=sponsor&utm_source=playwright-bdd" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./docs/_media/sponsors/testmu-ai-white.svg" /> <source media="(prefers-color-scheme: light)" srcset="./docs/_media/sponsors/testmu-ai-black.svg" /> <img src="./docs/_media/sponsors/testmu-ai-black.svg" alt="TestMu AI" width="300"> </picture> </a> </p> <p align="center"> <!-- sponsors --><a href="https://github.com/alescinskis"><img src="https://github.com/alescinskis.png" width="60px" alt="User avatar: Arturs Leščinskis" /></a><a href="https://github.com/alexhvastovich"><img src="https://github.com/alexhvastovich.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/FrancescoBorzi"><img src="https://github.com/FrancescoBorzi.png" width="60px" alt="User avatar: Francesco Borzì" /></a><!-- sponsors --> </p> If you find Playwright-BDD useful in your personal or work projects, consider [becoming a sponsor](https://github.com/sponsors/vitalets). 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: * [GitHub issues](https://github.com/vitalets/playwright-bdd/issues) * [Playwright-BDD Discord](https://discord.gg/5rwa7TAGUr) ## Contributing Your contributions are welcome! Please review [CONTRIBUTING.md](https://github.com/vitalets/playwright-bdd/blob/main/.github/CONTRIBUTING.md) for the details. ## My Other Playwright tools * [playwright-timeline-reporter](https://github.com/vitalets/playwright-timeline-reporter) - Interactive timeline report for Playwright test runs. * [@global-cache/playwright](https://github.com/vitalets/global-cache) - Key-value cache for sharing data between parallel workers. * [request-mocking-protocol](https://github.com/vitalets/request-mocking-protocol) - Mock server-side API calls in Playwright. * [playwright-network-cache](https://github.com/vitalets/playwright-network-cache) - Speed up Playwright tests by caching network requests on the filesystem. * [playwright-magic-steps](https://github.com/vitalets/playwright-magic-steps) - Auto-transform JavaScript comments into Playwright steps. ## License This project is licensed under the [MIT License](https://github.com/vitalets/playwright-bdd/blob/main/LICENSE), allowing you to use, modify, and share the code freely, even for commercial purposes. Enjoy building something amazing! 🎉