mirror of https://github.com/zulip/zulip.git
Add a test for !modal_link.
(imported from commit fac5adf7d596eaca4ea8ed860ddaceb496e72c7a)
This commit is contained in:
parent
ee7a1f0953
commit
c01c7285db
|
@ -4491,6 +4491,16 @@ class BugdownTest(TestCase):
|
|||
'</p>'
|
||||
)
|
||||
|
||||
def test_in_app_modal_link(self):
|
||||
msg = '!modal_link(#settings, Settings page)'
|
||||
converted = bugdown_convert(msg)
|
||||
self.assertEqual(
|
||||
converted,
|
||||
'<p>'
|
||||
'<a data-toggle="modal" href="#settings" title="#settings">Settings page</a>'
|
||||
'</p>'
|
||||
)
|
||||
|
||||
class UserPresenceTests(AuthedTestCase):
|
||||
def test_get_empty(self):
|
||||
self.login("hamlet@zulip.com")
|
||||
|
|
Loading…
Reference in New Issue