summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-01-27 11:32:30 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-01-27 12:38:55 +0100
commit757c4d2d20f5c723be5ab94f26f8faab8a617c74 (patch)
tree1f2bfbd59957d5147e2d21c27d53a9e3cc015c83
parenttdf#96505 Get rid of cargo cult 'long' integer literals (diff)
downloadcore-757c4d2d20f5c723be5ab94f26f8faab8a617c74.tar.gz
core-757c4d2d20f5c723be5ab94f26f8faab8a617c74.zip
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@libreoffice.org>
-rw-r--r--sc/qa/uitest/autofilter/autofilter.py31
1 files changed, 31 insertions, 0 deletions
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"))