From 52a1ce5607d45b8a424427f1d947e88b922b0dab Mon Sep 17 00:00:00 2001 From: Hare Date: Sat, 31 Oct 2026 12:47:01 +0900 Subject: [PATCH] fix: align Subject creation component assertion with required operation ID --- .../w/[workspaceId]/memory/memory-page.browser.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/workspace/src/routes/w/[workspaceId]/memory/memory-page.browser.spec.ts b/web/workspace/src/routes/w/[workspaceId]/memory/memory-page.browser.spec.ts index 3e54b167c..e94b2342b 100644 --- a/web/workspace/src/routes/w/[workspaceId]/memory/memory-page.browser.spec.ts +++ b/web/workspace/src/routes/w/[workspaceId]/memory/memory-page.browser.spec.ts @@ -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(init.method).toBe("POST"); - expect(init.body).toBe( - '{"role":" Review lead ","behavior_md":"Challenge unsupported assumptions."}', - ); + const request = JSON.parse(init.body as string); + 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 () => {