diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-05-25 18:03:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-05-25 20:58:20 +0200 |
commit | 036728422524fea034327b204d95e29ccc18c66b (patch) | |
tree | f7b8fb82828e27053e8e180438656346e223ccf3 /sw | |
parent | 09aa5a9be8b9b3c88cf25b85e0eda28c5ef19aa4 (diff) |
UITest_writer_tests4: fix this under high load
The failure I had:
======================================================================
FAIL: test_tdf113284 (tdf113284.tdf113284)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sw/qa/uitest/writer_tests4/tdf113284.py", line 34, in test_tdf113284
self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], str(xPageCount))
AssertionError: '1' != '91'
- 1
+ 91
? +
And with this in place 'make check' passes just fine. I assume the go to
page dialog goes to the relevant page in an async way.
Change-Id: Ic4b2a755c589f113af58b5fb3e43f537a52a50d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94803
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/writer_tests4/tdf113284.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/uitest/writer_tests4/tdf113284.py b/sw/qa/uitest/writer_tests4/tdf113284.py index 11c867ecea14..83494b2a79b1 100644 --- a/sw/qa/uitest/writer_tests4/tdf113284.py +++ b/sw/qa/uitest/writer_tests4/tdf113284.py @@ -30,6 +30,8 @@ class tdf113284(UITestCase): xPageText.executeAction("TYPE", mkPropertyValues({"TEXT":str(xPageCount)})) # goto last page xOkBtn = xDialog.getChild("ok") self.ui_test.close_dialog_through_button(xOkBtn) + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xToolkit.processEventsToIdle() self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], str(xPageCount)) self.ui_test.execute_dialog_through_command(".uno:EditCurIndex") #open index dialog @@ -43,4 +45,4 @@ class tdf113284(UITestCase): self.assertEqual(document.CurrentController.PageCount, xPageCount) self.ui_test.close_doc() -# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file +# vim: set shiftwidth=4 softtabstop=4 expandtab: |