fix: align Subject creation component assertion with required operation ID

This commit is contained in:
2026-10-31 12:47:01 +09:00
parent 807a476c88
commit 52a1ce5607
@@ -175,9 +175,13 @@ test("creates one Subject with the exact role and navigates to its generated det
]; ];
expect(path).toBe("/api/w/workspace-1/subjektiv/subjects"); expect(path).toBe("/api/w/workspace-1/subjektiv/subjects");
expect(init.method).toBe("POST"); expect(init.method).toBe("POST");
expect(init.body).toBe( const request = JSON.parse(init.body as string);
'{"role":" Review lead ","behavior_md":"Challenge unsupported assumptions."}', expect(request).toEqual({
); operation_id: expect.any(String),
role: " Review lead ",
behavior_md: "Challenge unsupported assumptions.",
});
expect(request.operation_id).not.toBe("");
}); });
test("keeps creation available for an empty list and restores focus on cancel", async () => { test("keeps creation available for an empty list and restores focus on cancel", async () => {