diff --git a/packages/studio/src/webmcp/useStudioAgentTools.test.tsx b/packages/studio/src/webmcp/useStudioAgentTools.test.tsx index c809516b8a..690e785399 100644 --- a/packages/studio/src/webmcp/useStudioAgentTools.test.tsx +++ b/packages/studio/src/webmcp/useStudioAgentTools.test.tsx @@ -149,16 +149,16 @@ describe("useStudioAgentTools", () => { expect(signal?.aborted).toBe(true); }); - it("registers nothing when the browser has no WebMCP", async () => { + it("boots cleanly when the browser has no native WebMCP", async () => { removeModelContext(); await act(async () => { mountTools({ getSnapshot: () => snapshot() }); }); - // The assertion is that mounting did not throw; a browser without the API - // must still boot Studio. - expect(document).not.toHaveProperty("modelContext"); + // The assertion is that mounting did not throw; a browser without the + // native API must still boot Studio. The polyfill may install + // document.modelContext as a fallback — that is expected. }); it("registers nothing when the preference is turned off", async () => {