refactor(browser): remove arbitrary capture ceilings
This commit is contained in:
@@ -35,4 +35,15 @@ describe("inline web screenshots", () => {
|
||||
}).success,
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("accepts a caller-supplied target ID without a length ceiling", () => {
|
||||
const targetId = "target-".repeat(100);
|
||||
expect(
|
||||
captureWebScreenshotInputSchema.parse({
|
||||
cdp_endpoint: "http://127.0.0.1:9222",
|
||||
allowed_origins: ["https://app.example.test"],
|
||||
target_id: targetId,
|
||||
}).target_id,
|
||||
).toBe(targetId);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user