From f8abfa293637e125ecb65284976df85a634b5793 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sat, 10 May 2025 02:14:20 +0530 Subject: [PATCH] test_stripe: Add check for initially added card. --- corporate/tests/test_stripe.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py index 002581d209..719b6ad02b 100644 --- a/corporate/tests/test_stripe.py +++ b/corporate/tests/test_stripe.py @@ -2999,6 +2999,11 @@ class StripeTest(StripeTestCase): user = self.example_user("hamlet") self.login_user(user) self.add_card_and_upgrade(user) + + # Check that the card is displayed on the billing page. + response = self.client_get("/billing/") + self.assert_in_success_response(["Visa ending in 4242"], response) + # Create an open invoice customer = Customer.objects.first() assert customer is not None