sc/qa/uitest/calc_tests8/navigator.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
New commits: commit 41043667d759a2ed60fd013ef94d6723ea13e134 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Jan 30 12:41:37 2023 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Jan 30 13:07:43 2023 +0000 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 <xiscofa...@libreoffice.org> 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")