test_docs: Add an end-to-end test for HTML settings links.

This would have caught the issue fixed in the last few commits.
This commit is contained in:
Tim Abbott
2018-04-05 12:20:17 -07:00
parent 57ca19392e
commit d7658bbec5

View File

@@ -124,6 +124,11 @@ class DocPageTest(ZulipTestCase):
# be rendered instead
self._test('/integrations/', 'native integrations.')
class HelpTest(ZulipTestCase):
def test_html_settings_links(self) -> None:
result = self.client_get('/help/message-a-stream-by-email')
self.assertEqual(result.status_code, 200)
self.assertIn('<a target="_blank" href="../../#streams">streams page</a>', str(result.content))
class IntegrationTest(TestCase):
def test_check_if_every_integration_has_logo_that_exists(self) -> None: