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.
This commit is contained in:
tianma-if committed 2026-09-11 01:30:13 +08:00
1 parent 9f0df716ca
commit 7a09ecc1d3
1 file changed
+1 -1
@@ -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");