From 7a09ecc1d367faa604a4746ff8629d87633813b1 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Fri, 11 Sep 2026 01:30:13 +0800 Subject: [PATCH] test(plugins): expect panel purpose in the host snapshot The snapshot now includes purpose so the toolbar can hide workflow dialogs; update the fixture assertion to match. --- apps/web/src/lib/plugins/plugin-host.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/lib/plugins/plugin-host.test.mjs b/apps/web/src/lib/plugins/plugin-host.test.mjs index 6bec9672..4b001cee 100644 --- a/apps/web/src/lib/plugins/plugin-host.test.mjs +++ b/apps/web/src/lib/plugins/plugin-host.test.mjs @@ -225,7 +225,7 @@ describe("EdgeEverPluginHost", () => { await host.runCommand("org.edgeever.test-plugin", "hello"); expect(host.getSnapshot().commands).toHaveLength(7); - expect(host.getSnapshot().panels).toEqual([{ pluginId: "org.edgeever.test-plugin", id: "fixture", title: "Fixture panel", presentation: "dialog" }]); + expect(host.getSnapshot().panels).toEqual([{ pluginId: "org.edgeever.test-plugin", id: "fixture", title: "Fixture panel", purpose: "workflow", presentation: "dialog" }]); expect(notices).toEqual(["hello from plugin"]); await host.runCommand("org.edgeever.test-plugin", "read-without-permission"); await host.runCommand("org.edgeever.test-plugin", "subscribe-without-read-permission");