summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests8
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-01-30 12:41:37 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-01-30 13:07:43 +0000
commit41043667d759a2ed60fd013ef94d6723ea13e134 (patch)
tree3379a28b72ebfe6715e22c7afa82fbb061d65a16 /sc/qa/uitest/calc_tests8
parentf7db0f22dcff0b08acccf326b62d72a12b6e28f6 (diff)
sc: blind fix for uitest hang
Seen in https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/132439/consoleFull#42154025848ce9c26-9d0a-43a8-83d8-c44f54920d59 Change-Id: I688e796ff09a6df86eda6409b16150a8684bff7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146351 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests8')
-rw-r--r--sc/qa/uitest/calc_tests8/navigator.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py
index 574d73c72b41..2a01269b7e3a 100644
--- a/sc/qa/uitest/calc_tests8/navigator.py
+++ b/sc/qa/uitest/calc_tests8/navigator.py
@@ -129,22 +129,28 @@ class navigator(UITestCase):
xRow = xNavigatorPanel.getChild('row')
xColumn = xNavigatorPanel.getChild('column')
+
self.assertEqual(get_state_as_dict(xColumn)['Value'], '1')
self.assertEqual(get_state_as_dict(xRow)['Value'], '1')
self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "0")
self.assertEqual(get_state_as_dict(xGridWin)["CurrentColumn"], "0")
- xRow.executeAction("UP", tuple())
- xColumn.executeAction("UP", tuple())
-
- # Use return to update the current cell
+ 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")
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")
self.assertEqual(get_state_as_dict(xRow)['Value'], '2')
+ # Without the fix in place, this test would have failed with
+ # AssertionError: '0' != '1'
self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "1")
self.assertEqual(get_state_as_dict(xGridWin)["CurrentColumn"], "1")