From f279e9e77582c4766bf1c548f536014e4c78ed52 Mon Sep 17 00:00:00 2001 From: Denis Sheikherev Date: Thu, 15 Oct 2026 18:15:29 +0700 Subject: [PATCH] test(e2e): un-pin OPT-007 body-without-type default on iOS bugsee-cocoa#239 fixes bugsee-cocoa#204: with capture.network.body-without-type at its default (false), iOS kept a response body with no Content-Type. The test that checks the default leaves such a body out was it.failing on iOS; it now runs on Android, the iOS simulator and iPhone, like its option-on sibling. Co-Authored-By: Claude Opus 5.5 --- examples/bare/e2e/option-effects.test.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/bare/e2e/option-effects.test.ts b/examples/bare/e2e/option-effects.test.ts index 50e6052a..f59a432a 100644 --- a/examples/bare/e2e/option-effects.test.ts +++ b/examples/bare/e2e/option-effects.test.ts @@ -350,13 +350,10 @@ describeDevice(`launch option effects on ${TARGET_NAME}`, () => { expect(control).not.toMatch(/api-secret-/); }); - /** - * iOS 7.0.0-beta5 records the response twice under one URLSession event id - * ("complete", body null, then "complete" with the body), and the second - * carries the untyped body with body-without-type at its default (false) - * as well as with it on (XS, 2026-10-07): the option never withholds it. - * BGSNetworkHelperMethods.m gates only the first. Filed: bugsee-cocoa#204. - */ + // iOS records the response twice under one URLSession event id ("complete" + // with the headers, then "complete" with the body), so every record is read. + // Before bugsee-cocoa#239 the second kept the untyped body with the option + // off (bugsee-cocoa#204). /** The response body fields (Android `body`, iOS `custom.body`) of `name`'s stub fetch, as JSON. */ const untypedBodies = async (name: string): Promise => { const outcome = await uploaded(name, 'bytes', true); @@ -372,7 +369,7 @@ describeDevice(`launch option effects on ${TARGET_NAME}`, () => { expect(await untypedBodies('body-no-type')).toContain('x'.repeat(32)); }); - (ON_IOS ? it.failing : on(['A']))(`[OPT-007] capture.network.body-without-type at its default (false) leaves a response body with no Content-Type out${ON_IOS ? ' [known: iOS keeps untyped bodies with the option off (bugsee-cocoa#204)]' : ''}`, async () => { + on(['A', 'S', 'X'])('[OPT-007] capture.network.body-without-type at its default (false) leaves a response body with no Content-Type out', async () => { expect(await untypedBodies('body-no-type-control')).not.toContain('x'.repeat(32)); });