[Libreoffice-commits] core.git: sc/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jan 27 11:39:37 UTC 2021
sc/qa/uitest/autofilter/autofilter.py | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
New commits:
commit 757c4d2d20f5c723be5ab94f26f8faab8a617c74
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Jan 27 11:32:30 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Jan 27 12:38:55 2021 +0100
tdf#89244: sc: Add UItest
Change-Id: I77f90e1da6df70a2422607845637e30caeb9e6b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110009
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sc/qa/uitest/autofilter/autofilter.py b/sc/qa/uitest/autofilter/autofilter.py
index bc6360b2940c..ab295fa84dfe 100644
--- a/sc/qa/uitest/autofilter/autofilter.py
+++ b/sc/qa/uitest/autofilter/autofilter.py
@@ -202,6 +202,37 @@ class AutofilterTest(UITestCase):
self.ui_test.close_doc()
+ def test_tdf89244(self):
+ calc_doc = self.ui_test.create_doc_in_start_center("calc")
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ gridwin = xCalcDoc.getChild("grid_window")
+ document = self.ui_test.get_component()
+
+ enter_text_to_cell(gridwin, "A1", "AAA")
+ enter_text_to_cell(gridwin, "A3", "BBB")
+ gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A2"}))
+
+ self.xUITest.executeCommand(".uno:MergeCells")
+
+ self.xUITest.executeCommand(".uno:DataFilterAutoFilter")
+
+ gridwin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "0", "ROW": "0"}))
+
+ xFloatWindow = self.xUITest.getFloatWindow()
+
+ xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+
+ xList = xCheckListMenu.getChild("check_list_box")
+
+ self.assertEqual(2, len(xList.getChildren()))
+ self.assertEqual("(empty)", get_state_as_dict(xList.getChild('0'))['Text'])
+ self.assertEqual("BBB", get_state_as_dict(xList.getChild('1'))['Text'])
+
+ xOkBtn = xFloatWindow.getChild("ok")
+ xOkBtn.executeAction("CLICK", tuple())
+
+ self.ui_test.close_doc()
+
def test_tdf116818(self):
doc = self.ui_test.load_file(get_url_for_data_file("tdf116818.xlsx"))
More information about the Libreoffice-commits
mailing list