summaryrefslogtreecommitdiff
path: root/sc/qa/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 23:10:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-27 00:54:24 +0000
commit23282b476f094c735ecfae4f82798e36ac9cbbc9 (patch)
tree411f91b07e3eab3cf36cd68d28b75fc05b16f3bc /sc/qa/uitest
parent5d420856d432ff178560b2be37d33c6ddc439397 (diff)
add test for multiple row filtering
Change-Id: I55c898a7bf6796802ee6d04071801fec3fcf218d Reviewed-on: https://gerrit.libreoffice.org/35732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa/uitest')
-rw-r--r--sc/qa/uitest/autofilter/autofilter.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/qa/uitest/autofilter/autofilter.py b/sc/qa/uitest/autofilter/autofilter.py
index ece49657d0c9..57504e66e8e9 100644
--- a/sc/qa/uitest/autofilter/autofilter.py
+++ b/sc/qa/uitest/autofilter/autofilter.py
@@ -48,4 +48,26 @@ class AutofilterTest(UITestCase):
self.ui_test.close_doc()
+ def test_filter_multiple_rows(self):
+ doc = self.ui_test.load_file(get_url_for_data_file("autofilter.ods"))
+
+ xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window")
+ xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "2", "ROW": "0"}))
+ xFloatWindow = self.xUITest.getFloatWindow()
+ xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+
+ xTreeList = xCheckListMenu.getChild("check_list_box")
+ xFirstEntry = xTreeList.getChild("1")
+
+ xFirstEntry.executeAction("CLICK", tuple())
+
+ xOkBtn = xFloatWindow.getChild("ok")
+ xOkBtn.executeAction("CLICK", tuple())
+
+ self.assertFalse(is_row_hidden(doc, 0))
+ self.assertFalse(is_row_hidden(doc, 1))
+ self.assertTrue(is_row_hidden(doc, 2))
+ self.assertTrue(is_row_hidden(doc, 3))
+ self.assertFalse(is_row_hidden(doc, 4))
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: