navbar: Adjust label for usage statistics.

This commit is contained in:
Tim Abbott
2021-05-12 07:56:51 -07:00
parent 02676d5400
commit 06f1ea657e
4 changed files with 7 additions and 5 deletions

View File

@@ -267,13 +267,13 @@ class HelpTest(ZulipTestCase):
def test_help_relative_links_for_gear(self) -> None:
result = self.client_get("/help/analytics")
self.assertIn('<a href="/stats">Statistics</a>', str(result.content))
self.assertIn('<a href="/stats">Usage statistics</a>', str(result.content))
self.assertEqual(result.status_code, 200)
with self.settings(ROOT_DOMAIN_LANDING_PAGE=True):
result = self.client_get("/help/analytics", subdomain="")
self.assertEqual(result.status_code, 200)
self.assertIn("<strong>Statistics</strong>", str(result.content))
self.assertIn("<strong>Usage statistics</strong>", str(result.content))
self.assertNotIn("/stats", str(result.content))
def test_help_relative_links_for_stream(self) -> None: