diff options
Diffstat (limited to 'tests/test_mainwindow.cpp')
| -rw-r--r-- | tests/test_mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_mainwindow.cpp b/tests/test_mainwindow.cpp index 5eed336..9fc8439 100644 --- a/tests/test_mainwindow.cpp +++ b/tests/test_mainwindow.cpp @@ -13736,6 +13736,11 @@ void TestMainWindow::undoMovesTheMessageBack() view->setCurrentIndex(model->index(0, 0, QModelIndex())); window.findChild<QAction *>(QStringLiteral("delete"))->trigger(); QTRY_VERIFY_WITH_TIMEOUT(folderHasMessageFile(trash, stem), 15000); + // The file reaches the trash inside the worker BEFORE its confirmation + // crosses back and pushes the MoveCommand, so the undo has to wait for + // the stack too. Triggering on the file alone undid an empty stack, which + // Qt 6.12's quicker QTRY made deterministic. + QTRY_VERIFY_WITH_TIMEOUT(window.canUndo(), 15000); window.findChild<QAction *>(QStringLiteral("undo"))->trigger(); |
