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>
diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py
index 1589e45..46ce7d9 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()
diff --git a/sc/qa/uitest/data/tdf141973.ods b/sc/qa/uitest/data/tdf141973.ods
new file mode 100644
index 0000000..00885cf
--- /dev/null
+++ b/sc/qa/uitest/data/tdf141973.ods
Binary files differ