mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
[DolphinMainWindowTest] Fix testNewFileMenuEnabled
The newFileMenu enabled status is updated whenever the KDirLister emits the `completed` signal: use QTRY_COMPARE so that we can wait for it.
This commit is contained in:
parent
ff40714773
commit
30a335cbcf
|
@ -247,7 +247,7 @@ void DolphinMainWindowTest::testNewFileMenuEnabled()
|
|||
QVERIFY(newFileMenu);
|
||||
|
||||
QFETCH(bool, expectedEnabled);
|
||||
QCOMPARE(newFileMenu->isEnabled(), expectedEnabled);
|
||||
QTRY_COMPARE(newFileMenu->isEnabled(), expectedEnabled);
|
||||
}
|
||||
|
||||
QTEST_MAIN(DolphinMainWindowTest)
|
||||
|
|
Loading…
Reference in a new issue