aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_HELP
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2016-05-13 07:12:20 +0200
committerRobert Loehning <robert.loehning@qt.io>2016-05-13 11:36:55 +0000
commit1914329ec26bb2f150be603d15f0dfd8895cd96b (patch)
tree26c98ee9b31609fdbfd3ea84bd5fa623a0d5fdc5 /tests/system/suite_HELP
parentdbfa9280b00a572d3b10328a63549ebb7bc9f5aa (diff)
Squish: Fix tst_HELP02
Content of the QHelpContentWidget gets populated asynchronously, so wait a bit to have at least one entry - which normally should be our own documentation. Change-Id: Iad78f0bab0dd7f2f5a83cd94d2b2830ba146f554 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests/system/suite_HELP')
-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 7427014bef0..e0ec1aa8a97 100755
--- a/tests/system/suite_HELP/tst_HELP02/test.py
+++ b/tests/system/suite_HELP/tst_HELP02/test.py
@@ -53,6 +53,7 @@ def checkQtCreatorHelpVersion(expectedVersion):
switchViewTo(ViewConstants.HELP)
try:
helpContentWidget = waitForObject(':Qt Creator_QHelpContentWidget', 5000)
+ waitFor("helpContentWidget.model().rowCount > 0", 2000)
items = dumpItems(helpContentWidget.model())
test.compare(filter(lambda x: x.startswith('Qt Creator Manual'), items)[0],
'Qt Creator Manual %s' % expectedVersion,