diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index 1440cc8b5f..92b6a52e04 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -1462,12 +1462,16 @@ void TestGui::testDatabaseSettings() m_db->metadata()->setName("testDatabaseSettings"); triggerAction("actionDatabaseSettings"); auto* dbSettingsDialog = m_dbWidget->findChild("databaseSettingsDialog"); + auto* dbSettingsCategoryList = dbSettingsDialog->findChild("categoryList"); + auto* dbSettingsStackedWidget = dbSettingsDialog->findChild("stackedWidget"); auto* transformRoundsSpinBox = dbSettingsDialog->findChild("transformRoundsSpinBox"); auto advancedToggle = dbSettingsDialog->findChild("advancedSettingsToggle"); advancedToggle->setChecked(true); QApplication::processEvents(); + dbSettingsCategoryList->setCurrentCategory(1); // go into security category + dbSettingsStackedWidget->findChild()->setCurrentIndex(1); // go into encryption tab QVERIFY(transformRoundsSpinBox != nullptr); transformRoundsSpinBox->setValue(123456); QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter);