Repository navigation
chore(tests): stabilize the banner-reserved board snapshot fixtures - #737
Merged
Merged
Conversation
The #723 banner-reserved fixtures captured BannerSlotView's live ProgressView, whose indeterminate spin animation is timing-dependent — #714 verification found pixel drift on an unmodified commit across worktree runs. Add a `bannerSlotLoadingPreview` environment override on BannerSlotView (default nil, production spinner unchanged) so these fixtures can inject a static placeholder from outside the view tree, and keep the existing `.tolerantImage` (#586 board-suite convention) as a second line of defense. Re-recorded the 4 affected PNGs (MS + Sudoku, light + dark); each filter passed 3 consecutive local runs. closes #732 Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #732 — the #723 banner-reserved fixtures captured BannerSlotView's live
ProgressView, whose indeterminate spin animation is timing-dependent; #714 verification found pixel drift on an unmodified commit across worktree runs, and.tolerantImagealone can't absorb the spinner's changing SHAPE.What (7 files, +81/−5)
BannerSlotView: a test/preview-only\.bannerSlotLoadingPreviewenvironment override (default nil — production spinner path byte-identical; theelsebranch is the originalProgressView().controlSize(.small).tint(progressTint)verbatim). Injected only by snapshot tests from OUTSIDE the view tree, so no production call site changes.Circle().strokeBorderplaceholder instead of the live spinner, and keep.tolerantImage(test(minesweeper): strict .image for content snapshot suites (#487, #517) #586 board-suite convention) as a second line of defense. 4 PNGs re-recorded (MS + Sudoku, light + dark).Verification
Review
Leader read the production hunk inline (nil default preserves the original path exactly); haiku verified scope discipline, the symmetric injection across both apps, the 4-PNG re-record count, and the
nonisolated(unsafe)nil-defaultValue safety argument. No findings.🤖 Generated with Claude Code