How to introduce Playwright e2e testing after initial phases? #1534
|
Hi, I’ve just completed phase 3 of my project and I’m about to start phase 4. So far, GSD has only generated tests using Vitest, and I realized only now that I would like to also include end-to-end testing with Playwright. What would be the recommended way to: In particular, I’d like Playwright to become part of the standard testing/verification workflow alongside Vitest. Thanks! |
Replies: 1 comment
Adding Playwright for future phasesThe easiest way to make Playwright part of every future phase:
Retroactive Playwright tests for phases 1-3Use /gsd-map-codebase # so GSD knows what was built
/gsd-add-tests # specify Playwright e2e scopeAlternatively, create a dedicated phase for it: /gsd-add-phase 3.5 e2e-testing
/gsd-discuss-phase 3.5 # scope: Playwright e2e for all existing featuresSee COMMANDS.md for command details. |
Adding Playwright for future phases
The easiest way to make Playwright part of every future phase:
Mention it in
/gsd-discuss-phasebefore each phase. Say something like: "All user-facing features must include Playwright e2e tests alongside unit tests." This gets captured in CONTEXT.md, and the planner/executor will include e2e tests in plans.Add it to your project's CLAUDE.md (or REQUIREMENTS.md) as a standing convention:
GSD agents read CLAUDE.md, so this becomes a persistent instruction.
Retroactive Playwright tests for phases 1-3
Use
/gsd-add-tests— this is a workflow specifically …