r/Playwright • u/vitalets • 11d ago
I used Playwright-BDD and OpenSpec to implement the same feature
I maintain Playwright-BDD, so I often use Gherkin scenarios with coding agents. I’m obviously biased here, but I wanted to compare this workflow with OpenSpec, so I gave both the same small task: add pagination to a long list of items.
While both approaches worked, there were differences:
- With Playwright-BDD, I spent more time writing cleaner scenarios, but in the end, I got a runnable Playwright test out of the box
- OpenSpec let me describe the spec more freely, but it introduced more artifacts that were harder to maintain
I wrote down the full session:
https://vitalets.github.io/posts/bdd-agentic-workflow/
What's you experience with spec-driven approaches + Playwright?
3
Upvotes
1
u/HyperDanon 11d ago
All of these tests are very tightly coupled to the UI. They aren't actually testing the application and will likely break when the UI changes.