Commit 9ced351
chore(e2e): Move replaysOnErrorSampleRate out of _experiments (#5601)
* test(e2e): Fix capture replay E2E test failure
* test(e2e): Fix replay verification to check correct event fields
The E2E test was looking for replay_id in event._dsc.replay_id, but the
Sentry API may not include _dsc in the event JSON response. The SDK
correctly adds replay_id to event.contexts.replay.replay_id.
Changes:
- Update sentryApi.js to check event.contexts.replay.replay_id first
- Fallback to event._dsc.replay_id for backwards compatibility
- Add clear error message if replay_id not found in either location
- Add type conversion for LaunchArguments.replaysOnErrorSampleRate to
ensure it's always a number (LaunchArguments may return strings)
This fixes the iOS E2E test failure that started on Jan 28, 2026 after
JS SDK bump to 10.37.0. The issue was not with the SDK (replays work
correctly), but with how the test verifies replay attachment.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Reverse test code
* Log errors
* Revert "Log errors"
This reverts commit 604d202.
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 42a723e commit 9ced351
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
0 commit comments