import QtQuick import QtTest import Quickshell.Io import "../services" // Test hooks for plugins: off-screen screenshots of plugin panels. Item { id: root TestCase { id: input name: "PluginDriver" when: false } IpcHandler { target: "pluginTest" function panelScreenshot(id: string, path: string): bool { const w = PluginService.panelWindows[id]; if (!w || !w.visible) return false; const surface = input.findChild(w.contentItem, "noctaliaPanelSurface"); return !!surface && surface.grabToImage(result => result.saveToFile(path)); } } }