Repository navigation
fix(test): update stale $2.99 IAP price mocks + baselines to $0.99 - #1002
Merged
Merged
Conversation
SudokuUITests fixtures hardcoded the Remove Ads IAP price as `$2.99` across several `IAPProduct` mocks; the live price is `$0.99` (already the fallback value in `SettingsIAPRowTests.unpurchased_displayPrice_ fallsBackTo0_99WhenLookupEmpty`). The app itself was never wrong — this was fixture-only drift. Updated all `displayPrice: "$2.99"` mock literals to `"$0.99"` across SudokuUITests and AppMonetizationKit tests (the doc-comment example in IAPClient.swift is left as-is; it isn't a fixture). Re-recorded the 6 committed snapshot baselines whose sole visible change is the price text — confirmed via pixel-diff bounding box (18x24pt, same relative position in each) and by opening the regenerated PNGs. `SettingsViewAppStoreRowsTests`'s baseline was previously rejected as a candidate for the #976 marketing-frame fixture solely because of this stale price; it becomes a candidate again now that it reads $0.99. closes #981 Co-Authored-By: Claude Opus 5 (1M context) <[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.
Summary
$2.99; the live price is$0.99. The app's real price handling was never wrong — this was test-fixture-only drift.displayPrice: "$2.99"mock literal (and the paired#expect(... == "$2.99")assertion inSettingsIAPRowTests) to"$0.99"across 9 test files inSudokuUITestsandAppMonetizationKit. LeftIAPClient.swift:33alone — that's a doc-comment example, not a fixture.swift test --filterto record, ran again to confirm green).SettingsViewAppStoreRowsTests's baseline was previously rejected as a candidate for the feat(store): direction C+B marketing screenshot redesign #976 marketing-frame fixture solely because of this stale$2.99; it becomes a candidate again now that it reads$0.99.Re-recorded baselines + pixel-diff bounding boxes (old vs. new, same size, single tight region each)
SettingsViewAppStoreRowsTests/snapshot_iPhone_light_withAppStoreRowsAndInviteFriends...pngSettingsViewTests/snapshot_iPhone_light_unpurchased...pngSettingsViewTests/snapshot_iPhone_dark_unpurchased...pngSettingsViewTests/snapshot_mac_light_unpurchased...pngSettingsIAPRowTests/snapshotRowsIPhoneLightUnpurchased...pngSettingsIAPRowTests/snapshotRowsIPhoneLightPurchaseFailed...pngEvery diff is an identical 18×24pt box at the same relative position (the price label), confirming nothing else moved. Opened two of the regenerated PNGs directly (magnified crops) and visually confirmed
$2.99→$0.99. Thepurchasedvariants (no price shown) are untouched — verified viagit status.Test plan
swift test --package-path Packages/SudokuKit --filter SettingsViewTests— 15/15 passswift test --package-path Packages/SudokuKit --filter SettingsIAPRowTests— 10/10 passswift test --package-path Packages/SudokuKit --filter SettingsViewAppStoreRowsTests— 4/4 passswift test --package-path Packages/SudokuKit --filter MonetizationStateControllerUpdatesTests— 6/6 passswift test --package-path Packages/SudokuKit --filter SettingsViewWindowSnapshotTests— 2/2 pass (no committed baseline, unaffected)swift test --package-path Packages/SudokuKit --filter ASCScreenshotEmitTests— 9/9 skipped (gated onASC_EMIT_SCREENSHOTS, unaffected)swift test --package-path Packages/AppMonetizationKit— 122/122 passgit statusclean except the 9 swift files + 6 PNGs listed abovecloses #981
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 5 (1M context) [email protected]