--- a/autotests/core/attachmentmodeltest.cpp
+++ b/autotests/core/attachmentmodeltest.cpp
@@ -70,6 +70,7 @@ class AttachmentModelTest : public QObje
 
     void openTest()
     {
+        QSKIP("Test requires a running graphical session.");
 #ifdef Q_OS_WIN
         QSKIP("Test requires an application handling a jpeg file which we don't have in the Windows docker.");
 #endif
