Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-h-e committed Jun 17, 2024
1 parent d1ffebb commit 2bc6afd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/gui/TestGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ void TestGui::testCreateDatabase()
MessageBox::setNextAnswer(MessageBox::ContinueWithWeakPass);
QTest::keyClick(fileEdit, Qt::Key::Key_Enter);

tmpFile.remove(););
tmpFile.remove();
);

triggerAction("actionDatabaseNew");

Expand Down Expand Up @@ -398,14 +399,10 @@ void TestGui::prepareAndTriggerRemoteSync(const QString& sourceToSync)
QVERIFY(saveSettingsButton != nullptr);
QTest::mouseClick(saveSettingsButton, Qt::LeftButton);

// find and click dialog OK button
auto buttons = dbSettingsDialog->findChild<QDialogButtonBox*>()->findChildren<QPushButton*>();
for (QPushButton* b : buttons) {
if (b->text() == "OK") {
QTest::mouseClick(b, Qt::LeftButton);
break;
}
}
auto okButton = dbSettingsDialog->findChild<QDialogButtonBox*>("buttonBox")->button(QDialogButtonBox::Ok);
QVERIFY(okButton);
QTest::mouseClick(okButton, Qt::LeftButton);

QTRY_COMPARE(m_dbWidget->getRemoteParams().size(), 1);

// trigger aboutToShow to create remote actions
Expand Down

0 comments on commit 2bc6afd

Please sign in to comment.