Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/studio/src/webmcp/useStudioAgentTools.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Loading