diff --git a/autotests/integration/plasma_surface_test.cpp b/autotests/integration/plasma_surface_test.cpp index 71001b850a..6650227bbc 100644 --- a/autotests/integration/plasma_surface_test.cpp +++ b/autotests/integration/plasma_surface_test.cpp @@ -370,6 +370,7 @@ void PlasmaSurfaceTest::testPanelWindowsCanCover() // trigger screenedge QFETCH(QPoint, triggerPoint); KWin::Cursors::self()->mouse()->setPos(triggerPoint); + QVERIFY(stackingOrderChangedSpy.wait()); QCOMPARE(stackingOrderChangedSpy.count(), 1); stackingOrder = workspace()->stackingOrder(); QCOMPARE(stackingOrder.count(), 2);