From ff55c7d386a8dca90bc6e4b15cf4fd3506b7190c Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 10 Jul 2024 13:00:14 +0200 Subject: sw: uitest for c519de2296 Change-Id: If5e03591ba4aef6a111268b32bff305e1ec6ba8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170284 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/qa/uitest/writer_dialogs/openDialogs.py | 3 ++- sw/qa/uitest/writer_tests3/tdf124088.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'sw/qa') diff --git a/sw/qa/uitest/writer_dialogs/openDialogs.py b/sw/qa/uitest/writer_dialogs/openDialogs.py index b3b2ffcd7bad..fc6351e6fa70 100644 --- a/sw/qa/uitest/writer_dialogs/openDialogs.py +++ b/sw/qa/uitest/writer_dialogs/openDialogs.py @@ -99,7 +99,8 @@ dialogs = [ # tested in sw/qa/uitest/writer_tests/wordCount.py # {"command": ".uno:AutoCorrectDlg", "closeButton": "cancel"}, # tested in sw/qa/uitest/writer_tests5/autocorrectOptions.py - {"command": ".uno:EditGlossary", "closeButton": "close"}, + # {"command": ".uno:EditGlossary", "closeButton": "close"}, + # tested in sw/qa/uitest/writer_tests3/tdf124088.py # {"command": ".uno:ChapterNumberingDialog", "closeButton": "cancel"}, # tested in sw/qa/uitest/chapterNumbering/chapterNumbering.py # {"command": ".uno:LineNumberingDialog", "closeButton": "cancel"}, diff --git a/sw/qa/uitest/writer_tests3/tdf124088.py b/sw/qa/uitest/writer_tests3/tdf124088.py index 6ff65dad7631..125bc30cdc6a 100755 --- a/sw/qa/uitest/writer_tests3/tdf124088.py +++ b/sw/qa/uitest/writer_tests3/tdf124088.py @@ -24,6 +24,10 @@ class tdf124088(UITestCase): with self.ui_test.execute_dialog_through_command(".uno:EditGlossary") as xEditGlossaryDlg: xName = xEditGlossaryDlg.getChild("name") self.assertEqual(get_state_as_dict(xName)["Text"], "This is a sample") + + xShortName = xEditGlossaryDlg.getChild("shortname") + self.assertEqual("Tias", get_state_as_dict(xShortName)["Text"]) + # Click on a group entry, proposed auto text should remain xCategory = xEditGlossaryDlg.getChild("category") xMyAutoText = xCategory.getChild("2") -- cgit