test(FN-4150): align plugin tests with workflowSteps contributions

Fusion-Task-Id: FN-4150
Fusion-Task-Lineage: 153c239b-f6cd-49e4-bc13-216e0d2ca815
This commit is contained in:
Fusion
2026-05-13 20:14:19 -07:00
committed by gsxdsm
parent 9d366b5c6f
commit 26a1502f8f
2 changed files with 4 additions and 10 deletions

View File

@@ -18,8 +18,7 @@ describe("plugin registration contracts", () => {
expect(plugin.routes?.some((route) => route.path === "/drafts")).toBe(true);
expect(plugin.dashboardViews?.map((view) => view.viewId)).toEqual(["wizard", "manage"]);
expect(typeof plugin.executorRuntimeEnv).toBe("function");
// FN-4150/FN-3768 track future workflow step template contributions.
expect(plugin.workflowStepTemplates).toBeUndefined();
expect(plugin.workflowSteps?.length).toBeGreaterThan(0);
} finally {
h.cleanup();
}

View File

@@ -10,13 +10,8 @@ describe("workflow integration contracts", () => {
expect(typeof plugin.manifest.id).toBe("string");
});
it("does not currently contribute plugin workflow step templates", () => {
expect(plugin.workflowStepTemplates).toBeUndefined();
});
it("exposes no plugin workflow step IDs to runWorkflowSteps today", () => {
const workflowStepTemplates = plugin.workflowStepTemplates ?? [];
expect(workflowStepTemplates).toEqual([]);
expect(workflowStepTemplates.some((template) => template.id.startsWith("plugin:"))).toBe(false);
it("contributes plugin workflow step templates", () => {
expect(plugin.workflowSteps?.length).toBeGreaterThan(0);
expect(plugin.workflowSteps?.some((step) => step.mode === "script")).toBe(true);
});
});