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++) {
25
25
sentryTest . skip ( ) ;
26
26
}
27
27
28
- let callsToSentry = 0 ;
29
28
const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
30
29
const reqPromise1 = waitForReplayRequest ( page , 1 ) ;
30
+ const reqPromise2 = waitForReplayRequest ( page , 2 ) ;
31
31
32
32
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
33
- callsToSentry ++ ;
34
33
return route . fulfill ( {
35
34
status : 200 ,
36
35
contentType : 'application/json' ,
@@ -50,10 +49,11 @@ for (let i = 0; i < 100; i++) {
50
49
await page . click ( '#go-background' ) ;
51
50
await reqPromise1 ;
52
51
53
- expect ( callsToSentry ) . toEqual ( 2 ) ; // 2 replay events
54
-
55
52
await page . click ( '#log' ) ;
56
53
await page . click ( '#go-background' ) ;
54
+ await reqPromise2 ;
55
+
56
+ // Note: The fact that reqPromise1/reqPromise2 are fulfilled prooves that the recording continues
57
57
58
58
const event0 = getReplayEvent ( req0 ) ;
59
59
You can’t perform that action at this time.
0 commit comments