Skip to content

Conversation

@stephaniehobson
Copy link
Contributor

Set up BackstopJS to capture and compare screenshots of all Protocol components across 7 breakpoints (360-1536px). This enables detecting visual regressions during CSS refactoring.

  • Add backstop.config.js with viewport definitions
  • Add backstop-scenarios.js with 94 component scenarios
  • Add npm scripts: visual:reference, visual:test, visual:approve, visual:open
  • Include baseline reference screenshots (658 images)
  • Update .gitignore to exclude test artifacts

🤖 Generated with Claude Code

Description

Describe what this change does.

  • I have documented this change in the design system.
  • I have recorded this change in CHANGELOG.md.

Issue

Add a link to a related GitHub issue if applicable.

Testing

Enter helpful notes for whoever code reviews this change.

stephaniehobson and others added 3 commits January 7, 2026 10:02
Set up BackstopJS to capture and compare screenshots of all Protocol
components across 7 breakpoints (360-1536px). This enables detecting
visual regressions during CSS refactoring.

- Add backstop.config.js with viewport definitions
- Add backstop-scenarios.js with 94 component scenarios
- Add npm scripts: visual:reference, visual:test, visual:approve, visual:open
- Include baseline reference screenshots (658 images)
- Update .gitignore to exclude test artifacts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Ignore backstop_data generated files
- Add backstop config files with camelcase rule disabled
  (BackstopJS requires snake_case properties)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants