Help: SquishTests: Updates for tst_WELP01

Change-Id: I2e25f8c3368c4c00c13827f5eb70d9e3a4fc5a9e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2022-10-24 22:48:10 +02:00
parent afed126ba1
commit 5039ebff70
2 changed files with 6 additions and 3 deletions
+4 -3
View File
@@ -280,11 +280,12 @@ def addCurrentCreatorDocumentation():
clickButton(waitForObject("{type='QPushButton' name='addButton' visible='1' text='Add...'}"))
selectFromFileDialog(docPath)
try:
waitForObject("{type='QMessageBox' unnamed='1' visible='1' "
"text~='Unable to register documentation.*'}", 3000)
windowStr = ("{type='QMessageBox' unnamed='1' visible='1' "
"text~='Unable to register documentation.*'}")
waitForObject(windowStr, 3000)
test.passes("Qt Creator's documentation found already registered.")
clickButton(waitForObject("{type='QPushButton' text='OK' unnamed='1' visible='1' "
"container={name='groupBox' type='QGroupBox' visible='1'}}"))
"window=%s}" % windowStr))
except:
test.fail("Added Qt Creator's documentation explicitly.")
clickButton(waitForObject(":Options.OK_QPushButton"))