mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-31 02:49:21 +00:00
feat(tests/self-test): wait exposed window
This commit is contained in:
parent
f979695b17
commit
5ccc977754
1 changed files with 4 additions and 3 deletions
|
|
@ -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()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue