mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05:00
Force event processing after adding entries to prevent test failure
This commit is contained in:
parent
80fc1e5309
commit
c4d6fa855c
@ -316,6 +316,8 @@ void TestGui::testAddEntry()
|
||||
QTest::keyClicks(titleEdit, "something 3");
|
||||
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
|
||||
|
||||
QApplication::processEvents();
|
||||
|
||||
// Confirm that 4 entries now exist
|
||||
QTRY_COMPARE(entryView->model()->rowCount(), 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user