feat(browser): add snapshot refs=aria mode

This commit is contained in:
Peter Steinberger committed 2026-01-15 10:22:29 +00:00
1 parent 0facc63019
commit 4f1a4ab072
13 files changed
+210 -1

No files matched your search

+13
View File
@@ -121,6 +121,19 @@ describe("browser tool snapshot maxChars", () => {
expect(browserClientMocks.browserProfiles).toHaveBeenCalledWith("http://127.0.0.1:18791");
});
it("passes refs mode through to browser snapshot", async () => {
const tool = createBrowserTool();
await tool.execute?.(null, { action: "snapshot", format: "ai", refs: "aria" });
expect(browserClientMocks.browserSnapshot).toHaveBeenCalledWith(
"http://127.0.0.1:18791",
expect.objectContaining({
format: "ai",
refs: "aria",
}),
);
});
});
describe("browser tool snapshot labels", () => {