perf(test): dedupe browser/telegram coverage and trim batch retry cost

This commit is contained in:
Peter Steinberger
2026-02-14 02:33:56 +00:00
parent d3eb014892
commit 63711330e4
4 changed files with 43 additions and 1778 deletions

View File

@@ -317,6 +317,17 @@ describe("browser control server", () => {
targetId: "abcd1234",
maxChars: DEFAULT_AI_SNAPSHOT_MAX_CHARS,
});
const snapAiZero = (await realFetch(`${base}/snapshot?format=ai&maxChars=0`).then((r) =>
r.json(),
)) as { ok: boolean; format?: string };
expect(snapAiZero.ok).toBe(true);
expect(snapAiZero.format).toBe("ai");
const [lastCall] = pwMocks.snapshotAiViaPlaywright.mock.calls.at(-1) ?? [];
expect(lastCall).toEqual({
cdpUrl: cdpBaseUrl,
targetId: "abcd1234",
});
});
it("agent contract: navigation + common act commands", async () => {