[network/ruqola] src/widgets/room/autotests: Fix autotest error
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit add5e8587455939af467f0de37ee5fc7f7adbac9 by Laurent Montel.
Committed on 29/07/2026 at 06:19.
Pushed by mlaurent into branch 'master'.
Fix autotest error
M +3 -1 src/widgets/room/autotests/roomheaderwidgettest.cpp
https://invent.kde.org/network/ruqola/-/commit/add5e8587455939af467f0de37ee5fc7f7adbac9
diff --git a/src/widgets/room/autotests/roomheaderwidgettest.cpp b/src/widgets/room/autotests/roomheaderwidgettest.cpp
index 5e7e5e71de..44d2e4b025 100644
--- a/src/widgets/room/autotests/roomheaderwidgettest.cpp
+++ b/src/widgets/room/autotests/roomheaderwidgettest.cpp
@@ -200,7 +200,9 @@ void RoomHeaderWidgetTest::shouldGrowExpandedHeaderForNarrowWidth()
QCoreApplication::processEvents();
const int requiredHeaderHeight = constrainedHeader->heightForWidth(constrainedHeader->width());
- QVERIFY(requiredHeaderHeight + body->minimumHeight() <= container.height());
+ container.resize(400, requiredHeaderHeight + body->minimumHeight());
+ QCoreApplication::processEvents();
+
QCOMPARE(constrainedHeader->geometry().top(), 0);
QVERIFY(constrainedHeader->height() >= requiredHeaderHeight);
QVERIFY(constrainedLabel->height() >= constrainedLabel->heightForWidth(constrainedLabel->width()));