summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-31 09:23:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-31 11:53:12 +0000
commitaf1ca684bb12ff62e3df995ad44aefdb57a51af7 (patch)
treec2235ea995b507d2d5512b481462ae0a50b6ca28 /sc
parenta345952daf3238066ecb1a9c67bb6a3640a6299a (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/uitest/calc_tests8/navigator.py6
1 files changed, 4 insertions, 2 deletions
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