Skip to content

Commit 0a5954c

Browse files
antonisclaude
andcommitted
test(e2e): Update iOS envelope header test for Cocoa SDK v9
Updates envelope header trace expectations to match Cocoa SDK v9 format: - Changed sampled field from "1" to "true" (per sentry-cocoa#3067) - Added sample_rand field validation for Dynamic Sampling Context This change is required after upgrading from Cocoa 8.58.0 to 9.3.0 on the v8 branch. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent fa0ac32 commit 0a5954c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

samples/react-native/e2e/tests/captureHeader/envelopeHeader.test.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ describe('Capture message', () => {
6060
environment: expect.any(String),
6161
public_key: expect.any(String),
6262
replay_id: expect.any(String),
63+
sample_rand: expect.any(String),
6364
sample_rate: '1',
64-
sampled: '1',
65+
sampled: 'true',
6566
trace_id: expect.any(String),
6667
transaction: 'ErrorsScreen',
6768
}),

0 commit comments

Comments
 (0)