feat(FN-3091): add plugin view remount routing test coverage

Adds test coverage for plugin view remount routing behavior in the App component.

Fusion-Task-Id: FN-3091
This commit is contained in:
Fusion
2026-05-07 07:08:11 -07:00
committed by gsxdsm
parent 3575b5e445
commit 9057421112
10 changed files with 480 additions and 0 deletions

View File

@@ -1730,6 +1730,44 @@ export default plugin;
"views-b:timeline",
]);
expect(loader.getPluginUiSlots()).toHaveLength(1);
expect(loader.getPluginTools()).toEqual([]);
expect(loader.getPluginRoutes()).toEqual([]);
});
it("returns pluginId and complete view payload for each dashboard view entry", async () => {
await pluginStore.init();
const loader = new PluginLoader({ pluginStore, taskStore: mockTaskStore });
(loader as any).plugins.set("views-shape", {
manifest: makeManifest({ id: "views-shape" }),
state: "started",
hooks: {},
dashboardViews: [
{
viewId: "graph",
label: "Graph",
componentPath: "./graph.js",
icon: "Network",
placement: "more",
description: "Task dependency graph",
order: 40,
},
],
} as FusionPlugin);
expect(loader.getPluginDashboardViews()).toEqual([
{
pluginId: "views-shape",
view: {
viewId: "graph",
label: "Graph",
componentPath: "./graph.js",
icon: "Network",
placement: "more",
description: "Task dependency graph",
order: 40,
},
},
]);
});
});