diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index ee611af600..571c8b2ed7 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -342,6 +342,9 @@ void InternalWindowTest::testKeyboard() QSignalSpy windowShownSpy(internalClient, &ShellClient::windowShown); QVERIFY(windowShownSpy.isValid()); win.show(); + if (windowShownSpy.isEmpty()) { + QVERIFY(windowShownSpy.wait()); + } QCOMPARE(windowShownSpy.count(), 1); QVERIFY(leftSpy.isEmpty()); QVERIFY(!leftSpy.wait(100));