test(FN-4512): complete Step 3 — extend workflow step prompt contract assertions
Fusion-Task-Id: FN-4512 Fusion-Task-Lineage: b9d9534b-e623-4748-aa0d-dd65af509fbe
This commit is contained in:
@@ -6,5 +6,10 @@ describe("workflow steps", () => {
|
||||
const step = AGENT_BROWSER_WORKFLOW_STEPS[0];
|
||||
expect(step?.stepId).toBe("browser-evidence-review");
|
||||
expect(step?.mode).toBe("prompt");
|
||||
expect(step?.prompt).toContain('"verdict":"APPROVE|APPROVE_WITH_NOTES|REVISE"');
|
||||
expect(step?.prompt).not.toContain('"verdict":"PASS"');
|
||||
expect(step?.prompt).not.toContain('"verdict":"FAIL"');
|
||||
expect(step?.prompt).not.toMatch(/task_done\(|task_log\(/);
|
||||
expect(step?.prompt).toMatch(/out of scope|Diff Scope/i);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user