sw/qa/uitest/writer_tests7/tdf133348.py | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 798f8c2efac28ff15a2f7aa5e39c3744756de5b2 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Jun 25 11:14:55 2020 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Jun 25 13:47:38 2020 +0200 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 <xiscofa...@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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') _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits