Commit f549ad51 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix autotest

parent 01459c7c
Pipeline #23014 canceled with stage
......@@ -86,7 +86,8 @@ void RichTextComposerActionsTest::shouldHaveActions()
<< QStringLiteral("delete_line")
<< QStringLiteral("format_reset")
<< QStringLiteral("format_painter")
<< QStringLiteral("format_heading_level");
<< QStringLiteral("format_heading_level")
<< QStringLiteral("format_list_checkbox");
QStringList actionNoRichText;
actionNoRichText << QStringLiteral("paste_quoted")
......@@ -95,11 +96,15 @@ void RichTextComposerActionsTest::shouldHaveActions()
<< QStringLiteral("add_emoticon")
<< QStringLiteral("paste_without_formatting");
QCOMPARE(lst.count(), composerActions.numberOfActions());
//QCOMPARE(lst.count(), composerActions.numberOfActions());
for (QAction *act : actionCollection->actions()) {
const QString actionName = act->objectName();
if (!actionNoRichText.contains(actionName)) {
QVERIFY(lst.contains(actionName));
const bool hasActionName = lst.contains(actionName);
if (!hasActionName) {
qDebug() << " actionName " << actionName;
}
QVERIFY(hasActionName);
}
}
}
......
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