Summary
Set up Chrome DevTools MCP server for agent-driven visual inspection and add visual regression testing.
Prerequisites
Setup
- Install
chrome-devtools-mcp: npx chrome-devtools-mcp@latest
- Configure as MCP server in Claude Code settings (
.claude/settings.json)
- Add Playwright visual comparison snapshots
Capabilities
Visual Regression (Playwright screenshots)
- Snapshot key pages: Home, Story Detail, Create, filtered views
- Compare against baseline on PR (fail if pixel diff > threshold)
- Mobile + desktop viewports
Agent-Driven Inspection (Chrome DevTools MCP)
- DOM/CSS inspection: verify design tokens applied correctly
- Console monitoring: catch React warnings, uncaught errors
- Network analysis: flag slow RPC calls, failed requests, 429s
- Performance audit: Lighthouse scores for key pages
Integration with CI
- Visual regression runs in CI on PRs
- Baseline snapshots committed to repo (
__snapshots__/)
- Update snapshots with
npx playwright test --update-snapshots
Acceptance Criteria
Dependencies
Parent: #426
Summary
Set up Chrome DevTools MCP server for agent-driven visual inspection and add visual regression testing.
Prerequisites
Setup
chrome-devtools-mcp:npx chrome-devtools-mcp@latest.claude/settings.json)Capabilities
Visual Regression (Playwright screenshots)
Agent-Driven Inspection (Chrome DevTools MCP)
Integration with CI
__snapshots__/)npx playwright test --update-snapshotsAcceptance Criteria
Dependencies