mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-06 12:25:11 -04:00
Force event processing after adding entries to prevent test failure
This commit is contained in:
parent
80fc1e5309
commit
c4d6fa855c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue