mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
Fix TestGui::testDatabaseSettings open tab missing (#9162)
Co-authored-by: jNullj <jNullj@users.noreply.github.com>
This commit is contained in:
parent
1129986f18
commit
7a6505626f
@ -1462,12 +1462,16 @@ void TestGui::testDatabaseSettings()
|
|||||||
m_db->metadata()->setName("testDatabaseSettings");
|
m_db->metadata()->setName("testDatabaseSettings");
|
||||||
triggerAction("actionDatabaseSettings");
|
triggerAction("actionDatabaseSettings");
|
||||||
auto* dbSettingsDialog = m_dbWidget->findChild<QWidget*>("databaseSettingsDialog");
|
auto* dbSettingsDialog = m_dbWidget->findChild<QWidget*>("databaseSettingsDialog");
|
||||||
|
auto* dbSettingsCategoryList = dbSettingsDialog->findChild<CategoryListWidget*>("categoryList");
|
||||||
|
auto* dbSettingsStackedWidget = dbSettingsDialog->findChild<QStackedWidget*>("stackedWidget");
|
||||||
auto* transformRoundsSpinBox = dbSettingsDialog->findChild<QSpinBox*>("transformRoundsSpinBox");
|
auto* transformRoundsSpinBox = dbSettingsDialog->findChild<QSpinBox*>("transformRoundsSpinBox");
|
||||||
auto advancedToggle = dbSettingsDialog->findChild<QCheckBox*>("advancedSettingsToggle");
|
auto advancedToggle = dbSettingsDialog->findChild<QCheckBox*>("advancedSettingsToggle");
|
||||||
|
|
||||||
advancedToggle->setChecked(true);
|
advancedToggle->setChecked(true);
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
|
|
||||||
|
dbSettingsCategoryList->setCurrentCategory(1); // go into security category
|
||||||
|
dbSettingsStackedWidget->findChild<QTabWidget*>()->setCurrentIndex(1); // go into encryption tab
|
||||||
QVERIFY(transformRoundsSpinBox != nullptr);
|
QVERIFY(transformRoundsSpinBox != nullptr);
|
||||||
transformRoundsSpinBox->setValue(123456);
|
transformRoundsSpinBox->setValue(123456);
|
||||||
QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter);
|
QTest::keyClick(transformRoundsSpinBox, Qt::Key_Enter);
|
||||||
|
Loading…
Reference in New Issue
Block a user