SquishTests: Stabilize adding documentation

I noticed that Creator built on Qt 6.6.0 never needed longer than
two seconds to update the documentation after adding qtcreator.qch.
The same sources of Creator built on Qt 6.6.2 needed up to four
seconds. This subtle difference can lead to the situation that the
documentation was not yet updated when clicking "Getting Started"
in tst_WELP01, which then just displays an empty page.

Change-Id: I11ab2a902825190ed8ae27dad55a847f01ba44dc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2024-02-16 22:16:19 +01:00
parent 95bad0c91d
commit c4abbef0a8

View File

@@ -269,6 +269,8 @@ def addHelpDocumentation(which):
clickButton(waitForObject("{type='QPushButton' name='addButton' visible='1' text='Add...'}"))
selectFromFileDialog(qch)
clickButton(waitForObject(":Options.OK_QPushButton"))
progressBarWait(10000) # Wait for "Update Documentation"
def addCurrentCreatorDocumentation():
currentCreatorPath = currentApplicationContext().cwd
@@ -297,6 +299,8 @@ def addCurrentCreatorDocumentation():
except:
test.fail("Added Qt Creator's documentation explicitly.")
clickButton(waitForObject(":Options.OK_QPushButton"))
progressBarWait(10000) # Wait for "Update Documentation"
def verifyOutput(string, substring, outputFrom, outputIn):
index = string.find(substring)