Skip to content

test(monetization): harden MS MonetizationStateController productId assertion #262

Closed

Description

@wei18

Surfaced in PR #259 CR (Phase 3 MS monetization wire).

MinesweeperAppCompositionTests.monetizationControllerUsesMSProductId only asserts the module-level constant + removeAdsDisplayPrice == '$2.99' (fallback when availableProducts is empty — identical for Sudoku/MS).

A real behavioral assertion would drive FakeIAPClient.completeAvailableProducts([...]) with a product whose id is minesweeperRemoveAdsProductId and assert removeAdsDisplayPrice returns its displayPrice. Proves the controller is actually wired to MS productId, not just constructed with it.

Accepted as sentinel-only in PR #259. ~10 LOC test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions