diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-25 21:18:48 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-26 19:33:57 +0200 |
commit | 9028f048cafe1fbbad78c2239529b747572f13c5 (patch) | |
tree | 9063089b4da88ed30e23f0880c689d3e4020152f /sw/qa/uitest | |
parent | a6862a26d6cd17f6b4e4f6577bcd778bf952e65b (diff) |
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@debian.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf99711.py | 4 |
1 files changed, 4 insertions, 0 deletions
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") |