diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-03-31 08:22:44 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-04-14 04:35:28 +0000 |
commit | 3b5ef55a3230f9594b199f2971c68cfc1a88cde8 (patch) | |
tree | ffc49580eac3fce568e9bfdcd39368bdda17729c /tests | |
parent | 4bd71ebf6aee53a9ac15f9c7fe0f4819c91ae96b (diff) | |
download | qt-creator-3b5ef55a3230f9594b199f2971c68cfc1a88cde8.tar.gz |
Squish: Ensure treeview items are accessible
Before using mouseClick() we must ensure the items are really
accessible. So, scroll the view to the respective item explicitly.
Change-Id: I9e460b9f8cd64590d8a59692ba2d726495de3d92
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/shared/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ced74a0031..76fe918e98 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -435,6 +435,7 @@ def iterateQtVersions(keepOptionsOpen=False, alreadyOnOptionsDialog=False, rootChildText = str(rootIndex.data()).replace(".", "\\.").replace("_", "\\_") for subIndex in dumpIndices(model, rootIndex): subChildText = str(subIndex.data()).replace(".", "\\.").replace("_", "\\_") + treeView.scrollTo(subIndex) mouseClick(waitForObjectItem(treeView, ".".join([rootChildText,subChildText]))) currentText = str(waitForObject(":QtSupport__Internal__QtVersionManager.QLabel").text) matches = pattern.match(currentText) |