diff options
author | Jim Raykowski <raykowj@gmail.com> | 2020-12-29 15:12:44 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-01-16 23:31:18 +0100 |
commit | 602a044014b55a5a1b1a5f0e96af603590ee899f (patch) | |
tree | 40056d229c1e4687992908b2d89274e0559153cc /sw/qa/uitest | |
parent | 63239749683ad718e10a5f561f17ca3c41ab4466 (diff) |
tdf#137358 Fix incorrect outline position returned
when the cursor position is before the first outline node and there are
outline nodes in the document model extras section.
plus fix to update Navigator tracking on Navigator show
Change-Id: Ib93ba0d460128314efef228810c06dbd929c672e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108492
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r-- | sw/qa/uitest/navigator/tdf114724.py | 4 | ||||
-rw-r--r-- | sw/qa/uitest/navigator/tdf137274.py | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sw/qa/uitest/navigator/tdf114724.py b/sw/qa/uitest/navigator/tdf114724.py index 9c538739048f..a84bab60da60 100644 --- a/sw/qa/uitest/navigator/tdf114724.py +++ b/sw/qa/uitest/navigator/tdf114724.py @@ -22,8 +22,8 @@ class tdf114724(UITestCase): xWriterEdit.executeAction("FOCUS", tuple()) - self.ui_test.wait_until_property_is_updated(xNavigatorPanel, "selectedtext", "Headings") - self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "Headings") + self.ui_test.wait_until_property_is_updated(xNavigatorPanel, "selectedtext", "HEADING 1") + self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "HEADING 1") self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectioncount"], "1") for _ in range(0,3): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"})) diff --git a/sw/qa/uitest/navigator/tdf137274.py b/sw/qa/uitest/navigator/tdf137274.py index 2c23960ddf75..f1e153992e2d 100644 --- a/sw/qa/uitest/navigator/tdf137274.py +++ b/sw/qa/uitest/navigator/tdf137274.py @@ -30,13 +30,10 @@ class tdf137274(UITestCase): xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "SwNavigatorPanel"})) - xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent") - - xWriterEdit.executeAction("FOCUS", tuple()) + # wait until the navigator panel is available + self.ui_test.wait_until_child_is_available(xMainWindow, 'NavigatorPanelParent') - # Wait until the navigator is available - self.ui_test.wait_until_property_is_updated(xNavigatorPanel, "selectedtext", "Headings") - self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "Headings") + xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent") xContentTree = xNavigatorPanel.getChild("contenttree") xComments = xContentTree.getChild('10') |