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

View File

@@ -114,8 +114,10 @@ GeneralSettingsPageWidget::GeneralSettingsPageWidget()
// startup group box
auto startupGroupBox = new QGroupBox(Tr::tr("Startup"));
startupGroupBox->setObjectName("startupGroupBox");
contextHelpComboBox = new QComboBox(startupGroupBox);
contextHelpComboBox->setObjectName("contextHelpComboBox");
contextHelpComboBox->addItem(Tr::tr("Show Side-by-Side if Possible"));
contextHelpComboBox->addItem(Tr::tr("Always Show Side-by-Side"));
contextHelpComboBox->addItem(Tr::tr("Always Show in Help Mode"));

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"))