From 56d2fc1138699a2cd4d78c40b24437449b2d7fba Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 4 Dec 2026 08:05:29 +0800 Subject: [PATCH] test(mcp): share complete browser capture assertions (#16520) --- tests/boundary/mcp/webCaptureReferenceMcp.test.ts | 2 ++ tests/boundary/mcp/webPageViewMcp.test.ts | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/boundary/mcp/webCaptureReferenceMcp.test.ts b/tests/boundary/mcp/webCaptureReferenceMcp.test.ts index b9b96dd6554..0a1c26bf696 100644 --- a/tests/boundary/mcp/webCaptureReferenceMcp.test.ts +++ b/tests/boundary/mcp/webCaptureReferenceMcp.test.ts @@ -77,6 +77,8 @@ it("compares referenced captures exactly as the same captures inline", async () ...page, detail: "complete", }); + expect(before).toMatchObject({ operation: "inspect_web_page" }); + expect(before.parameters).not.toHaveProperty("detail"); const after = await call("inspect_web_page", { ...page, detail: "complete" }); const inline = await call("compare_web_captures", { before: { inspection: before.normalized_result }, diff --git a/tests/boundary/mcp/webPageViewMcp.test.ts b/tests/boundary/mcp/webPageViewMcp.test.ts index 0a643259dcd..74bf61d36d1 100644 --- a/tests/boundary/mcp/webPageViewMcp.test.ts +++ b/tests/boundary/mcp/webPageViewMcp.test.ts @@ -98,13 +98,6 @@ it("summarizes a large page capture and pages its console through the web-page v coverage: { total: 0, exhausted: true }, section: { console: { prior_activity_available: false } }, }); - - const complete = await call("inspect_web_page", { - ...page, - detail: "complete", - }); - expect(complete).toMatchObject({ operation: "inspect_web_page" }); - expect(complete.parameters).not.toHaveProperty("detail"); }); it("returns a small page capture inline when detail is omitted", async () => {