You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Use stable timestamps and version for visual testing (#387)
Replaces dynamic timestamps with Apple's iconic demo time (January 24,
2024, 9:41 AM PST) and mocks VERSION in Storybook to ensure consistent
visual snapshots in Chromatic.
## Changes
- **Stable timestamps in stories**: All story files now use a consistent
timestamp instead of `Date.now()`
- **Mocked VERSION for Storybook**: Created
`.storybook/mocks/version.ts` to provide stable version info
- **TitleBar story**: Added `TitleBar.stories.tsx` to test version
display
## Why
Chromatic visual regression tests were failing due to:
1. Timestamps changing on every render
2. VERSION changing based on git state during build
Now all visual tests use stable, predictable values.
_Generated with `cmux`_
0 commit comments