@@ -25,7 +25,6 @@ sentryTest(
25
25
let errorEventId : string | undefined ;
26
26
const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
27
27
const reqPromise1 = waitForReplayRequest ( page , 1 ) ;
28
- const reqPromise2 = waitForReplayRequest ( page , 2 ) ;
29
28
const reqErrorPromise = waitForErrorRequest ( page ) ;
30
29
31
30
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
@@ -101,18 +100,14 @@ sentryTest(
101
100
102
101
// Switches to session mode and then goes to background
103
102
const req1 = await reqPromise1 ;
104
- const req2 = await reqPromise2 ;
105
- expect ( callsToSentry ) . toBeGreaterThanOrEqual ( 5 ) ;
103
+ expect ( callsToSentry ) . toBeGreaterThanOrEqual ( 4 ) ;
106
104
107
105
const event0 = getReplayEvent ( req0 ) ;
108
106
const content0 = getReplayRecordingContent ( req0 ) ;
109
107
110
108
const event1 = getReplayEvent ( req1 ) ;
111
109
const content1 = getReplayRecordingContent ( req1 ) ;
112
110
113
- const event2 = getReplayEvent ( req2 ) ;
114
- const content2 = getReplayRecordingContent ( req2 ) ;
115
-
116
111
expect ( event0 ) . toEqual (
117
112
getExpectedReplayEvent ( {
118
113
error_ids : [ errorEventId ! ] ,
@@ -157,17 +152,7 @@ sentryTest(
157
152
158
153
// From switching to session mode
159
154
expect ( content1 . fullSnapshots ) . toHaveLength ( 1 ) ;
160
-
161
- expect ( event2 ) . toEqual (
162
- getExpectedReplayEvent ( {
163
- replay_type : 'buffer' , // although we're in session mode, we still send 'buffer' as replay_type
164
- segment_id : 2 ,
165
- urls : [ ] ,
166
- } ) ,
167
- ) ;
168
-
169
- expect ( content2 . fullSnapshots ) . toHaveLength ( 0 ) ;
170
- expect ( content2 . breadcrumbs ) . toEqual ( expect . arrayContaining ( [ expectedClickBreadcrumb ] ) ) ;
155
+ expect ( content1 . breadcrumbs ) . toEqual ( expect . arrayContaining ( [ expectedClickBreadcrumb ] ) ) ;
171
156
} ,
172
157
) ;
173
158
0 commit comments