Playwright Test Prompt
getByRole over CSS chains, auto-wait over sleep, web-first assertions — Playwright tests written the way Playwright wants.
View Resource →Build test generation prompts — unit, integration, or E2E — with framework modes and edge-case coverage rules.
getByRole over CSS chains, auto-wait over sleep, web-first assertions — Playwright tests written the way Playwright wants.
View Resource →Mock the dependencies, test the business logic, one behavior per test — the unit testing contract that bans plumbing tests.
View Resource →Status codes, response shapes, 401 vs 403, idempotency — API tests that test the contract, not the implementation.
View Resource →Login, token refresh, and everything that must fail: expired tokens, wrong permissions, malicious credentials — auth tested as behavior.
View Resource →Cart to confirmation as a user would do it — with the failure scenarios real users actually trigger: refreshes, back buttons, double clicks.
View Resource →Null, empty, min, max, off-by-one, malformed, unicode — the systematic boundary hunt that finds bugs where they actually live.
View Resource →Real database, real services, real transactions — integration tests that verify round-trips and rollback, not mocked theater.
View Resource →Characterization tests for legacy code: assert what it does TODAY — bugs and all — so tomorrow's change can't lie about its impact.
View Resource →Explicit waits, stale-element handling, drivers that actually quit — Selenium regression tests that hold the legacy fort.
View Resource →Required fields one at a time, invalid formats, business rules at their exact boundaries — validation tested the way users break it.
View Resource →