[network/ruqola] src/widgets/room/autotests: Improve autotest
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 16e4090c335c3f5e9b71897d7e392597de6c86ba by Laurent Montel.
Committed on 16/07/2026 at 22:04.
Pushed by mlaurent into branch 'master'.
Improve autotest
M +13 -1 src/widgets/room/autotests/pendingattachmentclickablewidgettest.cpp
https://invent.kde.org/network/ruqola/-/commit/16e4090c335c3f5e9b71897d7e392597de6c86ba
diff --git a/src/widgets/room/autotests/pendingattachmentclickablewidgettest.cpp b/src/widgets/room/autotests/pendingattachmentclickablewidgettest.cpp
index 4382367389..777f9d44c7 100644
--- a/src/widgets/room/autotests/pendingattachmentclickablewidgettest.cpp
+++ b/src/widgets/room/autotests/pendingattachmentclickablewidgettest.cpp
@@ -5,6 +5,7 @@
*/
#include "pendingattachmentclickablewidgettest.h"
#include "room/pendingattachmentclickablewidget.h"
+#include <QLabel>
#include <QTest>
#include <QToolButton>
QTEST_MAIN(PendingAttachmentClickableWidgetTest)
@@ -21,6 +22,17 @@ void PendingAttachmentClickableWidgetTest::shouldHaveDefaultValues()
QVERIFY(removeBtn);
QVERIFY(removeBtn->autoRaise());
QVERIFY(!removeBtn->toolTip().isEmpty());
- // TODO
+
+ auto mNameLabel = w.findChild<QLabel *>(u"nameLabel"_s);
+ QVERIFY(mNameLabel);
+ QVERIFY(mNameLabel->text().isEmpty());
+
+ auto mSizeLabel = w.findChild<QLabel *>(u"sizeLabel"_s);
+ QVERIFY(mSizeLabel);
+ QVERIFY(mSizeLabel->text().isEmpty());
+
+ auto mIconLabel = w.findChild<QLabel *>(u"iconLabel"_s);
+ QVERIFY(mIconLabel);
+ QVERIFY(mIconLabel->text().isEmpty());
}
#include "moc_pendingattachmentclickablewidgettest.cpp"