Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
plans: Redirect to /upgrade when clicked on buy standard from root.
Vishnu KS392b2900cfb0
diff --git a/templates/zerver/for-companies.html b/templates/zerver/for-companies.htmlindex a6a104a46c3..65ae990bb71 100644--- a/templates/zerver/for-companies.html+++ b/templates/zerver/for-companies.html@@ -580,11 +580,11 @@</div></div>{% if not realm %}- <a href="/new" class="button green">+ <a href="/upgrade" class="button green">{% if free_trial_days %}Start {{ free_trial_days }} day free trial{% else %}- Buy Standard+ Upgrade to Standard{% endif %}</a>{% elif realm.plan_type in [realm.STANDARD, realm.STANDARD_FREE] %}@@ -604,7 +604,7 @@{% if free_trial_days %}Start {{ free_trial_days }} day free trial{% else %}- Buy Standard+ Upgrade to Standard{% endif %}</a>{% endif %}diff --git a/templates/zerver/plans.html b/templates/zerver/plans.htmlindex e0406f8a0df..6f21a4fabb0 100644--- a/templates/zerver/plans.html+++ b/templates/zerver/plans.html@@ -86,11 +86,11 @@</div></div>{% if not realm %}- <a href="/new" class="button green">+ <a href="/upgrade" class="button green">{% if free_trial_days %}Start {{ free_trial_days }} day free trial{% else %}- Buy Standard+ Upgrade to Standard{% endif %}</a>{% elif realm.plan_type in [realm.STANDARD, realm.STANDARD_FREE] %}@@ -110,7 +110,7 @@{% if free_trial_days %}Start {{ free_trial_days }} day free trial{% else %}- Buy Standard+ Upgrade to Standard{% endif %}</a>{% endif %}diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.pyindex 7fbf1646027..00d2b8d47a7 100644--- a/zerver/tests/test_docs.py+++ b/zerver/tests/test_docs.py@@ -421,13 +421,13 @@ class PlansPageTest(ZulipTestCase):def test_CTA_text_by_plan_type(self) -> None:sign_up_now = "Create organization"- buy_standard = "Buy Standard"+ upgrade_to_standard = "Upgrade to Standard"current_plan = "Current plan"sponsorship_pending = "Sponsorship pending"# Root domainresult = self.client_get("/plans/", subdomain="")- self.assert_in_success_response([sign_up_now, buy_standard], result)+ self.assert_in_success_response([sign_up_now, upgrade_to_standard], result)self.assert_not_in_success_response([current_plan, sponsorship_pending], result)realm = get_realm("zulip")@@ -448,20 +448,20 @@ class PlansPageTest(ZulipTestCase):# But in the development environment, it renders a pageresult = self.client_get("/plans/", subdomain="zulip")- self.assert_in_success_response([sign_up_now, buy_standard], result)+ self.assert_in_success_response([sign_up_now, upgrade_to_standard], result)self.assert_not_in_success_response([current_plan, sponsorship_pending], result)realm.plan_type = Realm.LIMITEDrealm.save(update_fields=["plan_type"])result = self.client_get("/plans/", subdomain="zulip")- self.assert_in_success_response([current_plan, buy_standard], result)+ self.assert_in_success_response([current_plan, upgrade_to_standard], result)self.assert_not_in_success_response([sign_up_now, sponsorship_pending], result)with self.settings(FREE_TRIAL_DAYS=60):result = self.client_get("/plans/", subdomain="zulip")self.assert_in_success_response([current_plan, "Start 60 day free trial"], result)self.assert_not_in_success_response(- [sign_up_now, sponsorship_pending, buy_standard], result+ [sign_up_now, sponsorship_pending, upgrade_to_standard], result)realm.plan_type = Realm.STANDARD_FREE@@ -469,7 +469,7 @@ class PlansPageTest(ZulipTestCase):result = self.client_get("/plans/", subdomain="zulip")self.assert_in_success_response([current_plan], result)self.assert_not_in_success_response(- [sign_up_now, buy_standard, sponsorship_pending], result+ [sign_up_now, upgrade_to_standard, sponsorship_pending], result)realm.plan_type = Realm.STANDARD@@ -477,7 +477,7 @@ class PlansPageTest(ZulipTestCase):result = self.client_get("/plans/", subdomain="zulip")self.assert_in_success_response([current_plan], result)self.assert_not_in_success_response(- [sign_up_now, buy_standard, sponsorship_pending], result+ [sign_up_now, upgrade_to_standard, sponsorship_pending], result)customer = Customer.objects.create(realm=get_realm("zulip"), stripe_customer_id="cus_id")@@ -491,7 +491,7 @@ class PlansPageTest(ZulipTestCase):result = self.client_get("/plans/", subdomain="zulip")self.assert_in_success_response(["Current plan (free trial)"], result)self.assert_not_in_success_response(- [sign_up_now, buy_standard, sponsorship_pending], result+ [sign_up_now, upgrade_to_standard, sponsorship_pending], result)realm.plan_type = Realm.LIMITED@@ -502,7 +502,7 @@ class PlansPageTest(ZulipTestCase):result = self.client_get("/plans/", subdomain="zulip")self.assert_in_success_response([current_plan], result)self.assert_in_success_response([current_plan, sponsorship_pending], result)- self.assert_not_in_success_response([sign_up_now, buy_standard], result)+ self.assert_not_in_success_response([sign_up_now, upgrade_to_standard], result)class AppsPageTest(ZulipTestCase):