From d35cf4b846a914303675a21300b79dc860e6f73f Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 22 Jun 2020 19:52:59 +0200 Subject: [PATCH] Squish: Stabilize tst_HELP02 Depending on the sizes of the treeview and its contents, the click might hit the scroll bar and result in a script error. Change-Id: Ic3658b1f180d1aa5a792d6664d2d7f56d8d0c353 Reviewed-by: Christian Stenger --- tests/system/suite_HELP/tst_HELP02/test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/system/suite_HELP/tst_HELP02/test.py b/tests/system/suite_HELP/tst_HELP02/test.py index 2eb09773b1b..1d776689be7 100755 --- a/tests/system/suite_HELP/tst_HELP02/test.py +++ b/tests/system/suite_HELP/tst_HELP02/test.py @@ -78,6 +78,7 @@ def setKeyboardShortcutForAboutQtC(): modelIndex = waitForObject("{column='0' text='AboutQtCreator' type='QModelIndex' " "container={column='0' text='QtCreator' type='QModelIndex' " "container=%s}}" % objectMap.realName(treewidget)) + treewidget.scrollTo(modelIndex) mouseClick(modelIndex) shortcutGB = "{title='Shortcut' type='QGroupBox' unnamed='1' visible='1'}" record = waitForObject("{container=%s type='Core::Internal::ShortcutButton' unnamed='1' "