diff --git a/src/apps/dashboard/tests/integrated/test_wallet_views.py b/src/apps/dashboard/tests/integrated/test_wallet_views.py index 81610a5..46a0552 100644 --- a/src/apps/dashboard/tests/integrated/test_wallet_views.py +++ b/src/apps/dashboard/tests/integrated/test_wallet_views.py @@ -40,12 +40,11 @@ class WalletViewTest(TestCase): def test_wallet_page_shows_stripe_payment_element(self): [_] = self.parsed.cssselect("#id_stripe_payment_element") - def test_wallet_page_shows_tithe_token_shop(self): - [_] = self.parsed.cssselect("#id_tithe_token_shop") - - def test_tithe_token_shop_shows_bundle(self): - bundles = self.parsed.cssselect("#id_tithe_token_shop .token-bundle") - self.assertGreater(len(bundles), 0) + # Note: the legacy `#id_tithe_token_shop` HTML in Balances was + # superseded by the dedicated Shop applet in Chunk 5 of + # [[project-wallet-shop-expansion]]. Shop-applet coverage lives in + # `WalletTokensAppletAllTrinketsVisibleTest` below + `test_shop_models.py` + # + `test_shop_views.py`. class WalletTokensAppletAllTrinketsVisibleTest(TestCase): diff --git a/src/functional_tests/test_dash_wallet.py b/src/functional_tests/test_dash_wallet.py index 9c73055..1edbbc6 100644 --- a/src/functional_tests/test_dash_wallet.py +++ b/src/functional_tests/test_dash_wallet.py @@ -348,20 +348,13 @@ class WalletDisplayTest(FunctionalTest): self.assertIn("Already owned", tt_html) - def test_user_can_purchase_tithe_token_bundle(self): - # 1. Log in, navigate to wallet page - self.create_pre_authenticated_session("capman@test.io") - self.browser.get(self.live_server_url + "/dashboard/wallet/") - # 2. Assert Tithe Token purchase section present - self.wait_for( - lambda: self.browser.find_element(By.ID, "id_tithe_token_shop") - ) - # 3. Assert min. +1 bundle option is visible - bundle = self.browser.find_element( - By.CSS_SELECTOR, "#id_tithe_token_shop .token-bundle" - ) - # 4. Assert ea. bundle shows token count & writ bonus placeholder - self.assertIn("Tithe Token", bundle.text) - self.assertIn("Writ", bundle.text) - # 5. (Placeholder) Purchase flow via Stripe not driven in this FT: - # Full charge assertion deferred until Stripe webhook handling implemented + # Legacy `test_user_can_purchase_tithe_token_bundle` FT (asserting + # `#id_tithe_token_shop` inside Balances) was removed in Chunk 5 of + # [[project-wallet-shop-expansion]] — the tithe purchase surface + # moved to the dedicated Shop applet. Coverage now lives in: + # - `test_shop_applet_renders_seeded_items_with_icons_and_badges` + # (tile + icon + badge + price) + # - `test_shop_buy_click_opens_guard_portal_with_purchase_prompt` + # (BUY → guard portal → NVM dismisses) + # - `test_shop_band_already_owned_shows_disabled_buy_btn` + # (max_owned cap renders BUY as `.btn-disabled` w. microtext) diff --git a/src/templates/apps/wallet/_partials/_applet-wallet-balances.html b/src/templates/apps/wallet/_partials/_applet-wallet-balances.html index fa1eba9..dd20121 100644 --- a/src/templates/apps/wallet/_partials/_applet-wallet-balances.html +++ b/src/templates/apps/wallet/_partials/_applet-wallet-balances.html @@ -2,19 +2,13 @@ id="id_wallet_balances" style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};" > + {% comment %} + Tithe purchase UI was moved out to the dedicated Shop applet in + Chunk 5 of [[project-wallet-shop-expansion]] — the Shop is the + canonical purchase surface; Balances is read-only (writs + esteem + totals). + {% endcomment %}

Balances

: {{ wallet.writs }}
Esteem: {{ wallet.esteem }}
-
-
- 1 Tithe Token - +144 Writs - $1.00 -
-
- 5 Tithe Tokens - +750 Writs - $4.00 -
-