diff --git a/CLAUDE.md b/CLAUDE.md index 51aa3d3c..e325e30d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -76,3 +76,7 @@ The following are contractual hard constraints for the remote frontend component - Never add `Co-Authored-By` lines to commit messages. - Commit messages in English, concise, focused on "why" not "what". - Commit autonomously when changes are complete and stable — no need to ask for permission. Group related edits into logical commits. Still ask before pushing, force-pushing, or any destructive git operation. + +## Test Rules + +- **Every fix must have an e2e test**. Before committing a behaviour change, either create a new Playwright spec under `tests/e2e/` that exercises the fix, or extend/update the existing spec that covers the affected page. Tests must run green before commit; never commit a fix without proving it through Playwright.