tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu
tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu where the widget is not set to fullscreen when it should. Wait for the the widget to be exposed when shown the first time. Fix flakiness on Ubuntu 24.04 Pick-to: 6.9 6.8 6.5 Change-Id: I9f5ea9ebb58c7505f841e5420dd2c15e5f0f2799 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
d1b88f8b73
commit
5ced648feb
@ -85,6 +85,7 @@ void tst_QSizeGrip::hideAndShowOnWindowStateChange()
|
||||
else
|
||||
widget->show();
|
||||
QTRY_VERIFY(sizeGrip->isVisible());
|
||||
QVERIFY(QTest::qWaitForWindowExposed(widget.data()));
|
||||
|
||||
widget->showFullScreen();
|
||||
QTRY_VERIFY(!sizeGrip->isVisible());
|
||||
|
Loading…
x
Reference in New Issue
Block a user