Visual Regression Until Match
Coding
by loops! by elorm
Run Playwright or Percy visual snapshots on UI changes; fix unintended diffs until baselines match intentionally.
Prompt
Step 1 — Run visual tests Run visual regression tests. List screenshots that differ from baseline with component names. Check: `npx playwright test --grep @visual` Step 2 — Fix or approve If diffs are bugs, fix CSS/markup. If intentional, update snapshots only after verifying in report. Step 3 — Repeat until done Repeat the steps above until: Visual regression tests pass with approved baselines Check with: `npx playwright test --grep @visual` Stop after 6 iterations and report what is blocking.
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Coding prompts
Independent Verifier Pass
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implement...
API Contract Until Match
Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.
De-Sloppify Pass
After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with pro...
Merge Conflict Resolver
Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.