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 db2658a4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix autotest

parent 1d2e9a31
......@@ -27,6 +27,7 @@
#include <QSpinBox>
#include <QTest>
#include <kpimtextedit/plaintexteditorwidget.h>
#include <vacation/vacationmailactionwidget.h>
VacationEditWidgetTest::VacationEditWidgetTest(QObject *parent)
: QObject(parent)
......@@ -111,11 +112,9 @@ void VacationEditWidgetTest::shouldHaveDefaultValue()
QVERIFY(mMailAction);
QCOMPARE(mMailAction->count(), 4);
QLineEdit *mMailActionRecipient = w.findChild<QLineEdit *>(QStringLiteral("mMailActionRecipient"));
KSieveUi::VacationMailActionWidget *mMailActionRecipient = w.findChild<KSieveUi::VacationMailActionWidget *>(QStringLiteral("mMailActionRecipient"));
QVERIFY(mMailActionRecipient);
QVERIFY(mMailActionRecipient->text().isEmpty());
QVERIFY(!mMailActionRecipient->isEnabled());
QVERIFY(mMailActionRecipient->isClearButtonEnabled());
QVERIFY(mMailActionRecipient->mailActionRecipient().isEmpty());
QLabel *actionIncomingMailsLabel = w.findChild<QLabel *>(QStringLiteral("actionIncomingMailsLabel"));
QVERIFY(actionIncomingMailsLabel);
......
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