autotests: Make testTranslucency less flaky

There's a race condition between the window becoming ready for painting
and testing the translucency animation.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 51d01a6616
commit d2df8ea9aa
  1. 3
      autotests/integration/effects/translucency_test.cpp

@ -130,6 +130,9 @@ void TranslucencyTest::testMoveAfterDesktopChange()
QCOMPARE(window->window(), windowId);
QVERIFY(window->isDecorated());
QMetaObject::invokeMethod(window, "setReadyForPainting");
QVERIFY(window->readyForPainting());
QCOMPARE(windowAddedSpy.count(), 1);
QVERIFY(!m_translucencyEffect->isActive());
// let's send the window to desktop 2

Loading…
Cancel
Save