Skip to content

GT-3108 Consolidate AccountLayout Paparazzi tests to full-screen snapshots - #4593

Open
tjohnson009 wants to merge 1 commit into
GT-3107-Convert-AccountLayout-To-Circuitfrom
GT-3108-Consolidate-AccountLayout-Paparazzi-Tests
Open

tjohnson009 wants to merge 1 commit into
GT-3107-Convert-AccountLayout-To-Circuitfrom
GT-3108-Consolidate-AccountLayout-Paparazzi-Tests

Conversation

@tjohnson009

Copy link
Copy Markdown
Contributor

Resolves GT-3108

Consolidates the Account screen's Paparazzi coverage to full-screen snapshots of the assembled AccountLayout, now possible since the screen renders from a plain UiState (GT-3107). Follow-up from the review of #4583.

Note: Stacked on #4592 (GT-3107) — this PR's base is the GT-3107-Convert-AccountLayout-To-Circuit branch so the diff shows only the test consolidation. GitHub will retarget it to develop automatically when #4592 merges.

Changes

  • AccountLayoutPaparazziTest now renders the entire AccountLayout across the standard DeviceConfigProvider × NightMode × AccessibilityMode matrix (same as ToolDetailsLayoutPaparazziTest), covering: default Activity tab, Global Activity tab selected, drawer open, and signed-in-but-empty user. Sample data is deterministic — populated activity counters light up both the stat cards and badges, global activity numbers are fixed, and Year is pinned to 2025.
  • AccountLayout gained an internal @VisibleForTesting overload accepting a PagerState, the minimal hook needed to snapshot the Global Activity tab in situ (mirroring how the old header test controlled the pager). The @CircuitInject entry point keeps its (state, modifier) signature and just delegates.
  • GlobalActivityLayoutPaparazziTest removed — its exact content now appears in the full-screen Global Activity tab snapshot.
  • AccountActivityBadgesPaparazziTest kept as a component-state test per the review discussion on GT-2786 Replace deprecated TabRow with SecondaryTabRow #4583: its All Incomplete / Some Complete / All Complete badge states can't all appear in one full-screen snapshot.
  • AccountLayoutHeader reverted to private and the header-only goldens removed.

Snapshots

The 20 new full-screen goldens were recorded via the Record Snapshots workflow and folded into this commit; the 11 stale header/global-activity goldens are removed. verifyPaparazzi passes locally against the recorded goldens.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mm8jFZh3uaPNENLcbnuxow

…shots

Replaces the header-only AccountLayout snapshots with full-screen
snapshots of the assembled Account screen, now possible since the screen
renders from a plain UiState (GT-3107).

- AccountLayoutPaparazziTest now renders the entire AccountLayout across
  the standard device/night/accessibility matrix: default Activity tab,
  Global Activity tab, drawer open, and no-user states
- Add an internal @VisibleForTesting AccountLayout overload accepting a
  PagerState so tests can snapshot the Global Activity tab in situ
- Fold GlobalActivityLayoutPaparazziTest into the full-screen Global
  Activity tab snapshot and remove its goldens
- Keep AccountActivityBadgesPaparazziTest as a component test since it
  visualizes distinct badge progress states
- Revert AccountLayoutHeader to private and remove stale header goldens

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mm8jFZh3uaPNENLcbnuxow
@frett frett added the onhold label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants