summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-05-21 18:43:06 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2020-05-21 19:28:19 +0200
commitd37b1ca5f502454266ff5a75455d61776ee11bb4 (patch)
treec70a6db40a4773ff6e0e1ea4022a421df90aa4a7 /uitest
parent2c2af2ebf8b2bed78286df4b4ffcbac556223ca8 (diff)
uitest: sw: grab focus before using toggle button in navigator
otherwise the focus in on the document since ada385f1cba427416c1e8517cb6a45b61ceff7b0 Change-Id: Ia8300fdceb4f50f89c6d90f238483a4c785163d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94647 Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/writer_tests5/tdf114724.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/writer_tests5/tdf114724.py b/uitest/writer_tests5/tdf114724.py
index 390e53b3ac37..46d19468d43c 100644
--- a/uitest/writer_tests5/tdf114724.py
+++ b/uitest/writer_tests5/tdf114724.py
@@ -25,6 +25,10 @@ class tdf114724(UITestCase):
xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent")
xNavigatorPanel.executeAction("ROOT", tuple())
+ xContentTree = xNavigatorPanel.getChild('contenttree')
+ #Check the content has changed
+ self.assertEqual(len(xContentTree.getChildren()), 1)
+
xWriterEdit.executeAction("FOCUS", tuple())
time.sleep(2)
self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectioncount"], "1")