Visual Regression Testing with Annotation Sessions
Visual bugs are often obvious to humans and hard to describe to automation.
Annotation sessions solve this by letting people mark what changed, then turning that into repeatable checks with Gasoline Agentic Devtools.
Quick Terms
Section titled “Quick Terms”- Visual regression: A visual change you did not intend.
- Annotation: A marked area with notes on what looks wrong.
- Baseline: The known-good visual version used for comparison.
The Problem You Are Solving
Section titled “The Problem You Are Solving”You want your team to say:
“This button shift will never surprise us in production again.”
Step-by-Step with Gasoline Agentic Devtools
Section titled “Step-by-Step with Gasoline Agentic Devtools”Step 1. Capture visual feedback with draw mode
Section titled “Step 1. Capture visual feedback with draw mode”interact({what: "draw_mode_start", annot_session: "checkout-visual-review", wait: true})Team members mark issues directly on the page.
Step 2. Retrieve annotations
Section titled “Step 2. Retrieve annotations”analyze({what: "annotations", annot_session: "checkout-visual-review"})Step 3. Generate a visual test from annotation data
Section titled “Step 3. Generate a visual test from annotation data”generate({what: "visual_test", annot_session: "checkout-visual-review", test_name: "checkout-visual-regression"})Step 4. Compare against baseline after changes
Section titled “Step 4. Compare against baseline after changes”analyze({what: "visual_baseline", name: "checkout-baseline"})analyze({what: "visual_diff", baseline: "checkout-baseline", threshold: 30})Why This Works for Mixed Teams
Section titled “Why This Works for Mixed Teams”Product, design, and engineering can all contribute without writing code first. Annotations keep intent clear.
Image and Diagram Callouts
Section titled “Image and Diagram Callouts”[Image Idea] Annotated screenshot with boxes and short labels (“text cut off”, “button moved”).
[Diagram Idea] Human annotation -> machine-generated visual test -> automated compare.
You’re Blending Human Taste with Automation
Section titled “You’re Blending Human Taste with Automation”That is cutting-edge quality practice. Gasoline Agentic Devtools helps your team move from “I think it looks off” to “we now test this every release.”