Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2021-05-15 16:59:20 +0300
committerJonathan White <support@dmapps.us>2021-05-30 15:44:09 +0300
commitdef08ac1dbfd3403ae0de9401a730175c9306935 (patch)
tree02933867685e4b8fcebf4c2d156f562e84894a32 /tests
parentb2c636d9c74b048cdcefe846a9e8032af65ab05c (diff)
Better description text for Key File change dialog
Diffstat (limited to 'tests')
-rw-r--r--tests/gui/TestGui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp
index 2463f13f6..65ca319bc 100644
--- a/tests/gui/TestGui.cpp
+++ b/tests/gui/TestGui.cpp
@@ -279,15 +279,15 @@ void TestGui::testCreateDatabase()
QTRY_VERIFY(!additionalOptionsButton->isVisible());
QCOMPARE(passwordWidget->visiblePage(), KeyFileEditWidget::Page::Edit);
QTest::mouseClick(keyFileWidget->findChild<QPushButton*>("addButton"), Qt::MouseButton::LeftButton);
- auto* fileCombo = keyFileWidget->findChild<QComboBox*>("keyFileCombo");
- QTRY_VERIFY(fileCombo);
- QTRY_VERIFY(fileCombo->isVisible());
+ auto* fileEdit = keyFileWidget->findChild<QLineEdit*>("keyFileLineEdit");
+ QTRY_VERIFY(fileEdit);
+ QTRY_VERIFY(fileEdit->isVisible());
fileDialog()->setNextFileName(QString("%1/%2").arg(QString(KEEPASSX_TEST_DATA_DIR), "FileKeyHashed.key"));
QTest::keyClick(keyFileWidget->findChild<QPushButton*>("addButton"), Qt::Key::Key_Enter);
- QVERIFY(fileCombo->hasFocus());
+ QVERIFY(fileEdit->hasFocus());
auto* browseButton = keyFileWidget->findChild<QPushButton*>("browseKeyFileButton");
QTest::keyClick(browseButton, Qt::Key::Key_Enter);
- QCOMPARE(fileCombo->currentText(), QString("%1/%2").arg(QString(KEEPASSX_TEST_DATA_DIR), "FileKeyHashed.key"));
+ QCOMPARE(fileEdit->text(), QString("%1/%2").arg(QString(KEEPASSX_TEST_DATA_DIR), "FileKeyHashed.key"));
// save database to temporary file
TemporaryFile tmpFile;
@@ -295,7 +295,7 @@ void TestGui::testCreateDatabase()
tmpFile.close();
fileDialog()->setNextFileName(tmpFile.fileName());
- QTest::keyClick(fileCombo, Qt::Key::Key_Enter);
+ QTest::keyClick(fileEdit, Qt::Key::Key_Enter);
tmpFile.remove(););
triggerAction("actionDatabaseNew");