summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/uitest/writer_tests7/tdf133348.py4
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')