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.8 6.5 Change-Id: I9f5ea9ebb58c7505f841e5420dd2c15e5f0f2799 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 5ced648febe51b8788bbc38d7a578d4f43b720aa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c17f7aed2b
commit
a40fdae4e7
@ -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