From 7a6505626f22e7726fd94c031eac361c18bd3122 Mon Sep 17 00:00:00 2001 From: jNullj <15849761+jNullj@users.noreply.github.com> Date: Sat, 25 Feb 2023 21:11:18 +0200 Subject: [PATCH] Fix TestGui::testDatabaseSettings open tab missing (#9162) Co-authored-by: jNullj --- tests/gui/TestGui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index 1440cc8b5..92b6a52e0 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);