Correct failure in GUI tests due to widget name

This commit is contained in:
Jonathan White 2018-01-01 14:24:37 -05:00
parent 738f870e70
commit 7dba788d09
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -898,7 +898,8 @@ void TestGui::testDatabaseSettings()
m_db->metadata()->setName("Save");
triggerAction("actionChangeDatabaseSettings");
QWidget* dbSettingsWidget = m_dbWidget->findChild<QWidget*>("databaseSettingsWidget");
QSpinBox* transformRoundsSpinBox = dbSettingsWidget->findChild<QSpinBox*>("kdfParams0");
QSpinBox* transformRoundsSpinBox = dbSettingsWidget->findChild<QSpinBox*>("transformRoundsSpinBox");
QVERIFY(transformRoundsSpinBox != nullptr);
transformRoundsSpinBox->setValue(100);
QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter);
// wait for modified timer