Skip to content

Commit 77018cc

Browse files
antonisclaude
andauthored
test(e2e): Update iOS envelope header test for Cocoa SDK v9 (#5623)
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 bbe7264 commit 77018cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)