forked from qt-creator/qt-creator
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user