fix(browser): require storage fingerprint approval
This commit is contained in:
@@ -167,6 +167,7 @@ describe("browser observation contracts", () => {
|
||||
{ include_console_text: true },
|
||||
{ include_json_body_shapes: true },
|
||||
{ include_websocket_shapes: true },
|
||||
{ include_storage_fingerprints: true },
|
||||
])
|
||||
expect(
|
||||
inspectWebPageInputSchema.safeParse({ ...base, ...input }).success,
|
||||
|
||||
@@ -257,6 +257,7 @@ describe("CdpBrowserProvider", () => {
|
||||
approved: true,
|
||||
observation_ms: 0,
|
||||
include_storage_keys: true,
|
||||
include_storage_fingerprints: true,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -1262,6 +1263,7 @@ describe("CdpBrowserProvider", () => {
|
||||
expect(result.value.storage.session_storage_keys).toHaveLength(1);
|
||||
expect(result.value.storage.indexed_db_names).toHaveLength(1);
|
||||
expect(result.value.storage.cache_names).toHaveLength(1);
|
||||
expect(result.value.storage.content_fingerprints).toEqual([]);
|
||||
});
|
||||
|
||||
it("degrades optional domains but propagates protocol and payload failures", async () => {
|
||||
|
||||
@@ -138,6 +138,7 @@ describe("web capture diff", () => {
|
||||
observation_ms: 0,
|
||||
include_accessibility_text: true,
|
||||
include_storage_keys: true,
|
||||
include_storage_fingerprints: true,
|
||||
}),
|
||||
);
|
||||
if (!captured.ok) throw captured.error;
|
||||
@@ -211,6 +212,7 @@ describe("web capture diff", () => {
|
||||
observation_ms: 0,
|
||||
include_accessibility_text: true,
|
||||
include_storage_keys: true,
|
||||
include_storage_fingerprints: true,
|
||||
}),
|
||||
);
|
||||
if (!captured.ok) throw captured.error;
|
||||
|
||||
Reference in New Issue
Block a user