aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-05-09 08:02:02 +0200
committerChristian Stenger <christian.stenger@qt.io>2018-05-09 08:51:15 +0000
commit9c1f47399ea81bdd63e032fc4f655a3320ea47c6 (patch)
tree83e8824a9729957625f63e9ebeadf9c017dcfdf1 /tests
parent1ac527d8f68d67e067e184c71d147b46985c3a90 (diff)
Squish: Stabilize selectFromLocator()
Calling it several times inside the same run results in unexpected behavior. The list of items inside the Locator gets filled asynchronously, so give it a chance to populate before trying to click something. Change-Id: I542a9fda37ae09e98e496d12a40d507a040bb247 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/shared/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py
index 8d1ce8682b..0b8fb5818f 100644
--- a/tests/system/shared/utils.py
+++ b/tests/system/shared/utils.py
@@ -114,6 +114,7 @@ def selectFromLocator(filter, itemName = None):
# clicking the wanted item
# if you replace this by pressing ENTER, be sure that something is selected
# otherwise you will run into unwanted behavior
+ snooze(1)
wantedItem = waitForObjectItem("{type='QTreeView' unnamed='1' visible='1'}", itemName)
doubleClick(wantedItem, 5, 5, 0, Qt.LeftButton)