Skip to content

[Test] Phase 3: Chrome DevTools MCP + Visual Regression #429

@realproject7

Description

@realproject7

Parent: #426

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

  • Chrome DevTools MCP configured and accessible to agents
  • Visual regression snapshots for Home, Story Detail, Create pages
  • Mobile (375px) and desktop (1280px) viewports covered
  • Snapshot comparison runs in CI
  • Agent can use MCP tools to inspect live dev server

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions