mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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="")
|
||||
|
Reference in New Issue
Block a user