From d71fde349bcf5b8ecfd4690b47ac0887217eef54 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Fri, 13 Mar 2026 11:58:18 +0530 Subject: [PATCH] test: add test for fallback behavior --- frappe/core/doctype/translation/test_translation.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 = """