File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/browser-integration-tests/suites/replay/bufferMode Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -339,8 +339,7 @@ sentryTest('[buffer-mode] can sample on each error event', async ({ getLocalTest
339
339
expect (
340
340
await page . evaluate ( ( ) => {
341
341
const replayIntegration = ( window as unknown as Window & { Replay : InstanceType < typeof Replay > } ) . Replay ;
342
- // @ts -ignore private
343
- const replay = replayIntegration . _replay ;
342
+ const replay = replayIntegration [ '_replay' ] ;
344
343
replayIntegration . startBuffering ( ) ;
345
344
return replay . isEnabled ( ) ;
346
345
} ) ,
@@ -356,8 +355,7 @@ sentryTest('[buffer-mode] can sample on each error event', async ({ getLocalTest
356
355
357
356
await page . evaluate ( async ( ) => {
358
357
const replayIntegration = ( window as unknown as Window & { Replay : Replay } ) . Replay ;
359
- // @ts -ignore private member, change errorSampleRate
360
- replayIntegration . _replay . _options . errorSampleRate = 1.0 ;
358
+ replayIntegration [ '_replay' ] . getOptions ( ) . errorSampleRate = 1.0 ;
361
359
} ) ;
362
360
363
361
// Error sample rate is now at 1.0, this error should create a replay
You can’t perform that action at this time.
0 commit comments