File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/integration-tests/suites/replay/errors/droppedError Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ for (let i = 0; i < 100; i++) {
2525 sentryTest . skip ( ) ;
2626 }
2727
28- let callsToSentry = 0 ;
2928 const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
3029 const reqPromise1 = waitForReplayRequest ( page , 1 ) ;
30+ const reqPromise2 = waitForReplayRequest ( page , 2 ) ;
3131
3232 await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
33- callsToSentry ++ ;
3433 return route . fulfill ( {
3534 status : 200 ,
3635 contentType : 'application/json' ,
@@ -50,10 +49,11 @@ for (let i = 0; i < 100; i++) {
5049 await page . click ( '#go-background' ) ;
5150 await reqPromise1 ;
5251
53- expect ( callsToSentry ) . toEqual ( 2 ) ; // 2 replay events
54-
5552 await page . click ( '#log' ) ;
5653 await page . click ( '#go-background' ) ;
54+ await reqPromise2 ;
55+
56+ // Note: The fact that reqPromise1/reqPromise2 are fulfilled prooves that the recording continues
5757
5858 const event0 = getReplayEvent ( req0 ) ;
5959
You can’t perform that action at this time.
0 commit comments