test(mcp): share complete browser capture assertions (#16520)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-12-04 08:05:29 +08:00
1 parent 35d0d013c1
commit 56d2fc1138
2 files changed
+2 -7

No files matched your search

@@ -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 },
@@ -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 () => {