mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
help: Add gear menu icons to relative links.
This commit is contained in:
@@ -388,13 +388,18 @@ class HelpTest(ZulipTestCase):
|
||||
|
||||
def test_help_relative_links_for_gear(self) -> None:
|
||||
result = self.client_get("/help/analytics")
|
||||
self.assertIn('<a href="/stats">Usage statistics</a>', str(result.content))
|
||||
self.assertIn(
|
||||
'<a href="/stats"><i class="fa fa-bar-chart"></i> 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>Usage statistics</strong>", str(result.content))
|
||||
self.assertIn(
|
||||
'<strong><i class="fa fa-bar-chart"></i> Usage statistics</strong>', str(result.content)
|
||||
)
|
||||
self.assertNotIn("/stats", str(result.content))
|
||||
|
||||
def test_help_relative_links_for_stream(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user