diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-25 11:14:55 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-25 13:47:38 +0200 |
commit | 798f8c2efac28ff15a2f7aa5e39c3744756de5b2 (patch) | |
tree | 3d0442aee4f15b6c9e09639a942d71f98ba1f064 /sw | |
parent | 52d70047c694d4e0c8bbf843c895d86492735f3f (diff) |
UITest_writer_tests7: Wait for async events (blind fix)
<https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/62483/>
failed spuriously with
ERROR: test_tdf133348 (tdf133348.tdf133348)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sw/qa/uitest/writer_tests7/tdf133348.py", line 44, in test_tdf133348
self.assertEqual(xEnum.nextElement().Author.strip(), 'Known Author')
tdf133348.com.sun.star.container.NoSuchElementException: SwXFieldEnumeration::nextElement
Change-Id: I5504f6febb20eb174b480f0d38176b1a70407716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97097
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf133348.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests7/tdf133348.py b/sw/qa/uitest/writer_tests7/tdf133348.py index 629c0d70912b..e9f91d8f17b6 100644 --- a/sw/qa/uitest/writer_tests7/tdf133348.py +++ b/sw/qa/uitest/writer_tests7/tdf133348.py @@ -39,6 +39,10 @@ class tdf133348(UITestCase): xArgs = mkPropertyValues({"Text": "C2"}) self.xUITest.executeCommandWithParameters(".uno:ReplyComment", xArgs) + # Wait for async events to be processed + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xToolkit.processEventsToIdle() + xEnum = document.TextFields.createEnumeration() self.assertEqual(xEnum.nextElement().Author.strip(), 'Unknown Author') self.assertEqual(xEnum.nextElement().Author.strip(), 'Known Author') |