mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +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);
|
QVERIFY(newFileMenu);
|
||||||
|
|
||||||
QFETCH(bool, expectedEnabled);
|
QFETCH(bool, expectedEnabled);
|
||||||
QCOMPARE(newFileMenu->isEnabled(), expectedEnabled);
|
QTRY_COMPARE(newFileMenu->isEnabled(), expectedEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(DolphinMainWindowTest)
|
QTEST_MAIN(DolphinMainWindowTest)
|
||||||
|
|
Loading…
Reference in a new issue