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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user