diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-08 18:30:07 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-09 10:00:59 +0200 |
commit | 7a21b3f098a09e498e7d79f07d3b65463a0d0913 (patch) | |
tree | ba408810e55a383e210daa03b9968c04bd37dd4d | |
parent | a97539174fd7f76713291dd4e8138adb1f776c91 (diff) |
tdf#133785: sc: Add UItest
Change-Id: I82d742f8139f1572d31201d0d0a5553476aadf25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95852
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
-rw-r--r-- | sc/qa/uitest/autofilter/tdf97340.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/qa/uitest/autofilter/tdf97340.py b/sc/qa/uitest/autofilter/tdf97340.py index 237ed71178ba..4bde1eab7cab 100644 --- a/sc/qa/uitest/autofilter/tdf97340.py +++ b/sc/qa/uitest/autofilter/tdf97340.py @@ -30,9 +30,23 @@ class tdf97340(UITestCase): gridwin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "0", "ROW": "0"})) xFloatWindow = self.xUITest.getFloatWindow() + + xCheckListMenu = xFloatWindow.getChild("check_list_menu") + xTreeList = xCheckListMenu.getChild("check_list_box") + self.assertEqual(2, len(xTreeList.getChildren())) + self.assertEqual("2016", get_state_as_dict(xTreeList.getChild('0'))['Text']) + self.assertEqual("2017", get_state_as_dict(xTreeList.getChild('1'))['Text']) + xsearchEdit = xFloatWindow.getChild("search_edit") xsearchEdit.executeAction("TYPE", mkPropertyValues({"TEXT":" "})) + self.assertEqual(0, len(xTreeList.getChildren())) + xsearchEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "BACKSPACE"})) + #tdf#133785, without the fix in place, it would have been 0 + self.assertEqual(2, len(xTreeList.getChildren())) + self.assertEqual("2016", get_state_as_dict(xTreeList.getChild('0'))['Text']) + self.assertEqual("2017", get_state_as_dict(xTreeList.getChild('1'))['Text']) + self.ui_test.close_doc() # vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file |