summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/navigator
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-02-24 10:25:09 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-02-24 14:14:58 +0100
commit6631aa3060ebbb3462391d784e406ac2a1060f8c (patch)
treeda54bb5783171116b5a3ad1c4797ad6a54105f7a /sw/qa/uitest/navigator
parent16901e4ccad95d55d4ae0fa2d6f6103b4177592e (diff)
uitest: no need to pass the parent as a parameter
Change-Id: I750b5600d3e4ef8ba5a0666133b9066904b4cbec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111450 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/navigator')
-rw-r--r--sw/qa/uitest/navigator/tdf137274.py8
-rw-r--r--sw/qa/uitest/navigator/tdf140257.py8
2 files changed, 5 insertions, 11 deletions
diff --git a/sw/qa/uitest/navigator/tdf137274.py b/sw/qa/uitest/navigator/tdf137274.py
index f1e153992e2d..a4a48dbb9693 100644
--- a/sw/qa/uitest/navigator/tdf137274.py
+++ b/sw/qa/uitest/navigator/tdf137274.py
@@ -24,16 +24,14 @@ class tdf137274(UITestCase):
self.xUITest.executeCommandWithParameters(".uno:InsertAnnotation", xArgs)
# wait until the comment is available
- self.ui_test.wait_until_child_is_available(xMainWindow, 'Comment1')
+ self.ui_test.wait_until_child_is_available('Comment1')
self.xUITest.executeCommand(".uno:Sidebar")
xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "SwNavigatorPanel"}))
# wait until the navigator panel is available
- self.ui_test.wait_until_child_is_available(xMainWindow, 'NavigatorPanelParent')
-
- xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent")
+ xNavigatorPanel = self.ui_test.wait_until_child_is_available('NavigatorPanelParent')
xContentTree = xNavigatorPanel.getChild("contenttree")
xComments = xContentTree.getChild('10')
@@ -50,7 +48,7 @@ class tdf137274(UITestCase):
self.xUITest.executeCommandWithParameters(".uno:InsertAnnotation", xArgs)
# wait until the second comment is available
- self.ui_test.wait_until_child_is_available(xMainWindow, 'Comment2')
+ self.ui_test.wait_until_child_is_available('Comment2')
xComments.executeAction("EXPAND", tuple())
diff --git a/sw/qa/uitest/navigator/tdf140257.py b/sw/qa/uitest/navigator/tdf140257.py
index 8982b7d2901f..6a6674d8f7e8 100644
--- a/sw/qa/uitest/navigator/tdf140257.py
+++ b/sw/qa/uitest/navigator/tdf140257.py
@@ -45,9 +45,7 @@ class Tdf140257(UITestCase):
xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "SwNavigatorPanel"}))
# wait until the navigator panel is available
- self.ui_test.wait_until_child_is_available(xMainWindow, 'NavigatorPanelParent')
-
- xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent")
+ xNavigatorPanel = self.ui_test.wait_until_child_is_available('NavigatorPanelParent')
xContentTree = xNavigatorPanel.getChild("contenttree")
xHeadings = xContentTree.getChild('0')
@@ -86,9 +84,7 @@ class Tdf140257(UITestCase):
xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "SwNavigatorPanel"}))
# wait until the navigator panel is available
- self.ui_test.wait_until_child_is_available(xMainWindow, 'NavigatorPanelParent')
-
- xNavigatorPanel = xWriterEdit.getChild("NavigatorPanelParent")
+ xNavigatorPanel = self.ui_test.wait_until_child_is_available('NavigatorPanelParent')
xContentTree = xNavigatorPanel.getChild("contenttree")
xHeadings = xContentTree.getChild('0')