sw/qa/uitest/writer_tests8/manageTemplates.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 28512460058270d7d83e477a673bcd86dc99c6ca
Author:     Xisco Fauli <[email protected]>
AuthorDate: Thu Jan 29 22:36:42 2026 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Jan 30 08:50:16 2026 +0100

    sw: fix uitest failing in some cases
    
    The name of the template can something other than
    "Modern business letter" as reported in
    https://gerrit.libreoffice.org/c/core/+/197757
    
    Change-Id: I08b03e922d71c0223bb160a5ae0f4426f35992d0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198381
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/qa/uitest/writer_tests8/manageTemplates.py 
b/sw/qa/uitest/writer_tests8/manageTemplates.py
index 4d019407606e..f2044e34b10f 100644
--- a/sw/qa/uitest/writer_tests8/manageTemplates.py
+++ b/sw/qa/uitest/writer_tests8/manageTemplates.py
@@ -22,7 +22,7 @@ class ManageTemplates(UITestCase):
                 xTemplateView.executeAction("SELECT", mkPropertyValues({"POS": 
"1"}))
                 print(get_state_as_dict(xTemplateView))
                 self.assertEqual("1", 
get_state_as_dict(xTemplateView)["SelectedIndex"])
-                
self.assertTrue(get_state_as_dict(xTemplateView)["SelectedItemTitle"].startswith("Modern
 business letter"))
+                aName = get_state_as_dict(xTemplateView)["SelectedItemTitle"]
 
                 # tdf#170399: Without the fix in place, this test would have 
crashed here
                 xTemplateView.executeAction("EDIT", tuple())
@@ -34,7 +34,7 @@ class ManageTemplates(UITestCase):
             raise
 
         document = self.ui_test.get_component()
-        self.assertTrue(document.Title.startswith("Modern_business_letter"))
+        self.assertEqual(aName.replace(" ", "_").replace("-", "_") + ".ott", 
document.Title)
         self.ui_test.close_doc()
 
 # vim: set shiftwidth=4 softtabstop=4 expandtab:

Reply via email to