Common web visual testing

From HoangNguyen0403/agent-skills-standard · View interactive version

Common web visual testing is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Standardizes visual audits, multi-viewport ergonomics, composited contrast, and behavioral testing for web apps. Use to verify web UI changes, responsive design across viewports, zoom reflow, or conduct comparative audits; separates automated smoke from human visual acceptance.

How to use this skill

Skill file

๐ŸŒ Web Visual & Behavioral Testing

**Priority: P1 (HIGH)**

[!IMPORTANT]

Tier 2 (Methodology): Strategy web UI/UX audit, responsive inspection, rendered acceptance.

Tier 3 (Domain): Responsive, A11y (WCAG), Browser Engine quirk, Multi-viewport Ergonomics.

๐Ÿงช Testing Mindset: Three Evidence Lanes

Never conflate software functionality, visual design quality, and model efficacy:

  1. Functional Technical Smoke: Automated checks (snapshot --aria, DOM inspection, console/network clean; form/CSRF governance ONLY when explicitly exercised). Proves observed scoped behaviors, NOT unexercised policies or visual beauty.
  2. Visual & Human Acceptance: Real screenshot/video audit across viewports covering hierarchy, type scale, density, composited surfaces, and action reachability. Human maintainer alone grants appearance acceptance; no automated tool or score can sign off. Expert critique != user study.
  3. Model Efficacy Receipts: Paired same-state same-viewport captures with source identity and actual loaded guidance under controlled protocol. Local refinement is not model generation efficacy.

๐Ÿ”„ Comparative Audit Loop

  1. Baseline (Before): Capture snapshot --aria + screenshot prod/main.
  2. Implementation (After): Capture same local/feature.
  3. Audit: Compare state for visual regression, CLS, Aria drift, and side-effects. Label captures Before and After.

๐Ÿ“ Multi-Viewport & Zoom Ergonomics

๐ŸŽจ Rendered Critique & Composited Contrast

๐Ÿ“‹ Scenario Matrix

| Change Type | Scenarios to Run |

| :---------------- | :------------------------------------------------- |

| CSS/Layout | Multi-Viewport Audit (15) + Hover (3) + CLS Check |

| Forms/Input | Validation Msg (8) + Focus State (6) + Error (5) |

| Navigation | URL Sync + Sticky Header + 200% Zoom Check (16) |

| Assets/Fonts | Lazy Load + Icon Check + LCP / Layout Shift |

| Accessibility | Tab Order + Composited Contrast (17) + Aria Diff |

| Visual Review | Rendered Acceptance Walkthrough (18) + Diffs |

๐Ÿ›ก Browser Origin & Native Form Governance

๐Ÿšซ Anti-Patterns

๐Ÿ“ Evidence

Before/After pairs live in .playwright-cli/<session>/ as <AC|step>-before.png / <AC|step>-after.png plus matching .aria.txt. Driver rung and dir go in walkthrough driver: / evidence_dir: lines. Mask dynamic data via --mask or JS (opacity: 0). Mock/bypass 3rd-party dependencies.

๐Ÿ”— References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.