sc/qa/uitest/calc_tests8/navigator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit af1ca684bb12ff62e3df995ad44aefdb57a51af7 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jan 31 09:23:48 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jan 31 11:53:12 2023 +0000 another stab at making this test reliable Change-Id: If044ae7906f3e98ea558dc90d9580052874e97bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146379 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py index 2a01269b7e3a..313b0d572e31 100644 --- a/sc/qa/uitest/calc_tests8/navigator.py +++ b/sc/qa/uitest/calc_tests8/navigator.py @@ -135,18 +135,20 @@ class navigator(UITestCase): self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "0") self.assertEqual(get_state_as_dict(xGridWin)["CurrentColumn"], "0") + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xColumn.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) xColumn.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"})) xColumn.executeAction("TYPE", mkPropertyValues({"TEXT":"B"})) xColumn.executeAction("TYPE", mkPropertyValues({"KEYCODE":"RETURN"})) - self.ui_test.wait_until_property_is_updated(xColumn, "Value", "2") + xToolkit.processEventsToIdle() self.assertEqual(get_state_as_dict(xColumn)['Value'], '2') xRow.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) xRow.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"})) xRow.executeAction("TYPE", mkPropertyValues({"TEXT":"2"})) xRow.executeAction("TYPE", mkPropertyValues({"KEYCODE":"RETURN"})) - self.ui_test.wait_until_property_is_updated(xRow, "Value", "2") + xToolkit.processEventsToIdle() self.assertEqual(get_state_as_dict(xRow)['Value'], '2') # Without the fix in place, this test would have failed with