Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_stripe: Add check for initially added card.

Aman Agrawalf8abfa293637
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 002581d209a..719b6ad02bb 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