From 3b5ef55a3230f9594b199f2971c68cfc1a88cde8 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 31 Mar 2022 08:22:44 +0200 Subject: [PATCH] Squish: Ensure treeview items are accessible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/system/shared/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ced74a0031e..76fe918e98f 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)