forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Robert Loehning
parent
dbfa9280b0
commit
1914329ec2
@@ -53,6 +53,7 @@ def checkQtCreatorHelpVersion(expectedVersion):
|
|||||||
switchViewTo(ViewConstants.HELP)
|
switchViewTo(ViewConstants.HELP)
|
||||||
try:
|
try:
|
||||||
helpContentWidget = waitForObject(':Qt Creator_QHelpContentWidget', 5000)
|
helpContentWidget = waitForObject(':Qt Creator_QHelpContentWidget', 5000)
|
||||||
|
waitFor("helpContentWidget.model().rowCount > 0", 2000)
|
||||||
items = dumpItems(helpContentWidget.model())
|
items = dumpItems(helpContentWidget.model())
|
||||||
test.compare(filter(lambda x: x.startswith('Qt Creator Manual'), items)[0],
|
test.compare(filter(lambda x: x.startswith('Qt Creator Manual'), items)[0],
|
||||||
'Qt Creator Manual %s' % expectedVersion,
|
'Qt Creator Manual %s' % expectedVersion,
|
||||||
|
Reference in New Issue
Block a user