diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-05 10:50:59 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-05 16:25:51 +0200 |
commit | c6d0986acb50941d30257cb497466066badfcaa1 (patch) | |
tree | 4af7c7e87d43b764e05f425686a6d969d4272047 /sc/qa/uitest/calc_tests8 | |
parent | 21f53f55f82f12fbee4e0d93ff26d3bb05ec3c55 (diff) |
tdf#141973: sc: Add UItest
Change-Id: I06d8da1e2336a93cbd974b817afa21f830bd2ff7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115125
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests8')
-rw-r--r-- | sc/qa/uitest/calc_tests8/navigator.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py index 1589e45f4763..46ce7d9673cf 100644 --- a/sc/qa/uitest/calc_tests8/navigator.py +++ b/sc/qa/uitest/calc_tests8/navigator.py @@ -150,3 +150,25 @@ class navigator(UITestCase): self.xUITest.executeCommand(".uno:Sidebar") self.ui_test.close_doc() + + def test_tdf141973(self): + self.ui_test.load_file(get_url_for_data_file("tdf141973.ods")) + xCalcDoc = self.xUITest.getTopFocusWindow() + xGridWin = xCalcDoc.getChild("grid_window") + + self.xUITest.executeCommand(".uno:Sidebar") + + # Without the fix in place, this test would have crashed here + xGridWin.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "ScNavigatorPanel"})) + + xCalcDoc = self.xUITest.getTopFocusWindow() + xNavigatorPanel = xCalcDoc.getChild("NavigatorPanel") + xContentBox = xNavigatorPanel.getChild('contentbox') + xDrawings = xContentBox.getChild("7") + self.assertEqual('Drawing objects', get_state_as_dict(xDrawings)['Text']) + self.assertEqual(len(xDrawings.getChildren()), 1) + self.assertEqual('withname', get_state_as_dict(xDrawings.getChild('0'))['Text']) + + self.xUITest.executeCommand(".uno:Sidebar") + + self.ui_test.close_doc() |