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
339339 expect (
340340 await page . evaluate ( ( ) => {
341341 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' ] ;
344343 replayIntegration . startBuffering ( ) ;
345344 return replay . isEnabled ( ) ;
346345 } ) ,
@@ -356,8 +355,7 @@ sentryTest('[buffer-mode] can sample on each error event', async ({ getLocalTest
356355
357356 await page . evaluate ( async ( ) => {
358357 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 ;
361359 } ) ;
362360
363361 // 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