diff --git a/frappe/core/doctype/translation/test_translation.py b/frappe/core/doctype/translation/test_translation.py index 33c3200ada..d534f43f2a 100644 --- a/frappe/core/doctype/translation/test_translation.py +++ b/frappe/core/doctype/translation/test_translation.py @@ -92,6 +92,12 @@ class TestTranslation(IntegrationTestCase): self.assertTrue(_(source), target) + def test_html_message_translations(self): + """Test fallback for messages w/ HTML Tags""" + message = "Hide descendant records of For Value." + translated_message = "隐藏下层节点" + self.assertEqual(_(message, lang="zh"), translated_message) + def get_translation_data(): html_source_data = """