[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 26 17:34:33 UTC 2020


 sw/qa/uitest/writer_tests7/tdf99711.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9028f048cafe1fbbad78c2239529b747572f13c5
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Jun 25 21:18:48 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri Jun 26 19:33:57 2020 +0200

    UITest_writer_tests7: wait until the child is available (blind fix)
    
    it fails spuriously with
    
    Traceback (most recent call last):
    File "sw/qa/uitest/writer_tests7/tdf99711.py", line 43, in test_tdf99711
    self.assertEqual(get_state_as_dict(xWriterEdit.getChild('selectwidth'))['Text'], '10.00 mm')
    uno.com.sun.star.uno.RuntimeException: Could not find child with id: selectwidth
    
    Change-Id: If80dac67880a1f4200331a7894ba2ecae4504bb2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97184
    Tested-by: Jenkins
    Tested-by: René Engelhard <rene at debian.org>
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/uitest/writer_tests7/tdf99711.py b/sw/qa/uitest/writer_tests7/tdf99711.py
index 8540454cbb7d..1a6b7f069392 100644
--- a/sw/qa/uitest/writer_tests7/tdf99711.py
+++ b/sw/qa/uitest/writer_tests7/tdf99711.py
@@ -40,7 +40,11 @@ class tdf99711(UITestCase):
         self.xUITest.executeCommand(".uno:Sidebar")
         xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "TextPropertyPanel"}))
 
+        #wait until the sidebar is available
+        self.ui_test.wait_until_child_is_available(xWriterEdit, 'selectwidth')
         self.assertEqual(get_state_as_dict(xWriterEdit.getChild('selectwidth'))['Text'], '10.00 mm')
+
+        self.ui_test.wait_until_child_is_available(xWriterEdit, 'selectheight')
         self.assertEqual(get_state_as_dict(xWriterEdit.getChild('selectheight'))['Text'], '10.00 mm')
 
         self.xUITest.executeCommand(".uno:Sidebar")


More information about the Libreoffice-commits mailing list