Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5476cf3f authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest

parent 2a2ba8fd
......@@ -23,6 +23,7 @@
#include <QLineEdit>
#include <QVBoxLayout>
#include <QTest>
#include <QToolButton>
SelectImapFolderWidgetTest::SelectImapFolderWidgetTest(QObject *parent)
: QObject(parent)
......@@ -47,6 +48,10 @@ void SelectImapFolderWidgetTest::shouldHaveDefaultValue()
QVERIFY(mSearchLineEdit);
QVERIFY(mSearchLineEdit->isClearButtonEnabled());
QVERIFY(mSearchLineEdit->text().isEmpty());
QToolButton *refreshImap = w.findChild<QToolButton *>(QStringLiteral("refreshimap"));
QVERIFY(refreshImap);
QVERIFY(!refreshImap->toolTip().isEmpty());
}
QTEST_MAIN(SelectImapFolderWidgetTest)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment