summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/autofilter/autofilter.py
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2021-02-18 18:04:53 +0100
committerLászló Németh <nemeth@numbertext.org>2021-02-25 14:53:07 +0100
commit7ba76115b0e3baefae0ede66848f4340c7c7401b (patch)
tree701dea27eea5be1827485b74dfc05bcce84124a1 /sc/qa/uitest/autofilter/autofilter.py
parent3421440bfbfff7c59caea881be64b684e601e04f (diff)
tdf#140469 XLSX import: apply more than 8 filters
in OOXML autofilter import by removing the artificial limit (which looked like the limit for conditions handled by the standard filter in LO, but not for the autofilter). Now the autofilter popup menu does not always select all items, if the document contained more than 8 selected items there. Change-Id: Iaa6ce15d4b1162ab78dd001734721ae859283d0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111156 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sc/qa/uitest/autofilter/autofilter.py')
-rw-r--r--sc/qa/uitest/autofilter/autofilter.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/sc/qa/uitest/autofilter/autofilter.py b/sc/qa/uitest/autofilter/autofilter.py
index ab295fa84dfe..1eedfe4b22a7 100644
--- a/sc/qa/uitest/autofilter/autofilter.py
+++ b/sc/qa/uitest/autofilter/autofilter.py
@@ -263,4 +263,19 @@ class AutofilterTest(UITestCase):
xOkBtn.executeAction("CLICK", tuple())
self.ui_test.close_doc()
+
+ def test_tdf140469(self):
+ doc = self.ui_test.load_file(get_url_for_data_file("tdf140469.xlsx"))
+
+ xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window")
+
+ xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "1", "ROW": "0"}))
+ xFloatWindow = self.xUITest.getFloatWindow()
+ xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+ xTreeList = xCheckListMenu.getChild("check_list_box")
+ self.assertEqual(9, len(xTreeList.getChildren()))
+ xOkBtn = xFloatWindow.getChild("cancel")
+ xOkBtn.executeAction("CLICK", tuple())
+
+ self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: