Debug failed or flaky Playwright tests by rerunning with tracing and analyzing the trace via `npx playwright trace` CLI. Use when a Playwright test fails, flakes, or the user asks why a test is broken.
Review working-tree changes before opening a PR by checking all uncommitted changes (staged, unstaged, and untracked) for leftover artifacts, test freshness, dead code, and consistency risks.