summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-06-22 19:52:59 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-07-06 10:48:25 +0000
commitd35cf4b846a914303675a21300b79dc860e6f73f (patch)
tree899fc8eec2466df128bcaa6c7b8aaa28a31985ea
parent410f051710483674e85dcd50e44cd2ad60ad783b (diff)
downloadqt-creator-d35cf4b846a914303675a21300b79dc860e6f73f.tar.gz
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 <christian.stenger@qt.io>
-rwxr-xr-xtests/system/suite_HELP/tst_HELP02/test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/system/suite_HELP/tst_HELP02/test.py b/tests/system/suite_HELP/tst_HELP02/test.py
index 2eb09773b1..1d776689be 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' "