mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-25 08:51:21 -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::keyClicks(titleEdit, "something 3");
|
||||||
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
|
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
|
||||||
|
|
||||||
|
QApplication::processEvents();
|
||||||
|
|
||||||
// Confirm that 4 entries now exist
|
// Confirm that 4 entries now exist
|
||||||
QTRY_COMPARE(entryView->model()->rowCount(), 4);
|
QTRY_COMPARE(entryView->model()->rowCount(), 4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user