Commit 5ccc9777 authored by Wescoeur's avatar Wescoeur

feat(tests/self-test): wait exposed window

parent f979695b
......@@ -23,6 +23,7 @@
#include <QSignalSpy>
#include <QTest>
#include "../../app/App.hpp"
#include "../../components/core/CoreManager.hpp"
#include "../TestUtils.hpp"
......@@ -36,8 +37,8 @@ void SelfTest::checkAppStartup () {
QVERIFY(spyCoreStarted.wait(5000));
if (spyLoaderReady.count() == 1)
return;
if (spyLoaderReady.count() != 1)
QVERIFY(spyLoaderReady.wait(1000));
QVERIFY(spyLoaderReady.wait(1000));
QVERIFY(QTest::qWaitForWindowExposed(App::getInstance()->getMainWindow()));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment