Skip to content

test: visual regression snapshots for wallet/transaction/network modal breakpoints - #779

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
nottherealalanturing:feature/visual-regression-snapshots
Jul 26, 2026
Merged

nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
nottherealalanturing:feature/visual-regression-snapshots

Conversation

@nottherealalanturing

Copy link
Copy Markdown
Contributor

Introduced a dedicated VisualTestHarness wrapper to deterministically render critical modals (Wallet, Transaction) across multiple predefined viewports (MOBILE, TABLET, DESKTOP) and themes for accurate Playwright/Storybook snapshot testing.

Highlights:

  • Created VisualTestHarness component in src/features/visual-testing/VisualTestHarness.tsx
  • Created custom hook useVisualTestHarness in src/features/visual-testing/useVisualTestHarness.ts
  • Added Zustand store in src/features/visual-testing/visualTestingStore.ts
  • Created types in src/features/visual-testing/visualTestingTypes.ts
  • Wrote extensive unit tests in src/features/visual-testing/VisualTestHarness.spec.tsx

close #665
close #664
close #663
close #662

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit
nanaf6203-bit merged commit b0e964c into MettaChain:main Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants