aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_mainwindow.cpp')
-rw-r--r--tests/test_mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_mainwindow.cpp b/tests/test_mainwindow.cpp
index 5446780..f6f75aa 100644
--- a/tests/test_mainwindow.cpp
+++ b/tests/test_mainwindow.cpp
@@ -8833,6 +8833,9 @@ void TestMainWindow::theCalendarActionWithNoCalendarOpensNothing()
MainWindow window(config);
auto *action = window.findChild<QAction *>(QStringLiteral("calendar"));
QVERIFY2(action, "no action named calendar");
+ // Enabled, not disabled: a future edit that greys it out would otherwise
+ // make the trigger below a no-op and leave this test passing vacuously.
+ QVERIFY2(action->isEnabled(), "the calendar action is disabled");
action->trigger();