urls: Show sponsorship page on a new URL.

Fixes #27377

Replaced #sponsorship links with sponsorship/ links and in other
places liking gear menu.
This commit is contained in:
Aman Agrawal
2023-11-02 08:36:27 +00:00
committed by Tim Abbott
parent 3ba0fe4349
commit 00df9c6c18
11 changed files with 43 additions and 72 deletions

View File

@@ -502,8 +502,8 @@ class PlansPageTest(ZulipTestCase):
root_domain = ""
result = self.client_get("/plans/", subdomain=root_domain)
self.assert_in_success_response(["Self-host Zulip"], result)
self.assert_not_in_success_response(["/upgrade/#sponsorship"], result)
self.assert_in_success_response(["/accounts/go/?next=%2Fupgrade%2F%23sponsorship"], result)
self.assert_not_in_success_response(["/sponsorship/"], result)
self.assert_in_success_response(["/accounts/go/?next=%2Fsponsorship%2F"], result)
non_existent_domain = "moo"
result = self.client_get("/plans/", subdomain=non_existent_domain)
@@ -526,10 +526,8 @@ class PlansPageTest(ZulipTestCase):
self.login(organization_member)
result = self.client_get("/plans/", subdomain="zulip")
self.assert_in_success_response(["Current plan"], result)
self.assert_in_success_response(["/upgrade/#sponsorship"], result)
self.assert_not_in_success_response(
["/accounts/go/?next=%2Fupgrade%2F%23sponsorship"], result
)
self.assert_in_success_response(["/sponsorship/"], result)
self.assert_not_in_success_response(["/accounts/go/?next=%2Fsponsorship%2F"], result)
# Test root domain, with login on different domain
result = self.client_get("/plans/", subdomain="")