Fix for PlasmaSurfaceTest broken in a3b50500

TestPanelWindowsCanCover now needs to wait for the event queue to process the hover event.
This commit is contained in:
Andreas Haratzis 2020-09-23 18:53:38 -07:00 committed by Vlad Zahorodnii
parent 1dbe3708f5
commit 6f53f62741

View file

@ -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);