diff options
author | Christian Stenger <christian.stenger@qt.io> | 2016-05-13 07:12:20 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2016-05-13 11:36:55 +0000 |
commit | 1914329ec26bb2f150be603d15f0dfd8895cd96b (patch) | |
tree | 26c98ee9b31609fdbfd3ea84bd5fa623a0d5fdc5 /tests/system/suite_HELP | |
parent | dbfa9280b00a572d3b10328a63549ebb7bc9f5aa (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-x | tests/system/suite_HELP/tst_HELP02/test.py | 1 |
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, |