test(native): replay complete dylib-use provider output

Replay the complete real Apple dylib-use output through the native provider boundary and retain rejection of an empty repeated options field. Align skill-install Result assertions and CDP initiator prerequisites with current contracts. The producing parser fix is already retained from main.

Refs #1970

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
Ysopwnable
2026-10-12 06:36:45 +08:00
committed by GitHub
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Kaoru0822
parent 7285e15839
commit 89f5e489ad
5 changed files with 339 additions and 2 deletions
@@ -18,6 +18,7 @@ it("preserves an already captured response shape without marking it unavailable"
method: "Network.requestWillBeSent",
params: {
requestId: "request-1",
initiator: { type: "other" },
request: {
url: `${origin}/prior`,
method: "POST",
@@ -43,6 +44,7 @@ it("preserves an already captured response shape without marking it unavailable"
base64Encoded: false,
});
const capturedShape = events.network.get("request-1")?.body_shapes.response;
expect(capturedShape).toBeDefined();
expect(capturedShape).not.toBeNull();
events.ingest({
@@ -50,6 +52,7 @@ it("preserves an already captured response shape without marking it unavailable"
params: {
requestId: "request-1",
request: { url: `${origin}/continuation`, method: "GET" },
initiator: { type: "other" },
redirectResponse: null,
timestamp: 2,
},