@@ -56,15 +56,15 @@ sentryTest(
56
56
57
57
const url = await getLocalTestPath ( { testDir : __dirname } ) ;
58
58
59
- const [ , req0 ] = await Promise . all ( [ page . goto ( url ) , reqPromise0 ] ) ;
59
+ const [ req0 ] = await Promise . all ( [ reqPromise0 , page . goto ( url ) ] ) ;
60
60
const replayEvent0 = getReplayEvent ( req0 ) ;
61
61
const recording0 = getReplayRecordingContent ( req0 ) ;
62
62
63
63
expect ( replayEvent0 ) . toEqual ( getExpectedReplayEvent ( { segment_id : 0 } ) ) ;
64
64
expect ( normalize ( recording0 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-0-snap-full' ) ;
65
65
expect ( recording0 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
66
66
67
- const [ , req1 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise1 ] ) ;
67
+ const [ req1 ] = await Promise . all ( [ reqPromise1 , page . click ( '#go-background' ) ] ) ;
68
68
69
69
const replayEvent1 = getReplayEvent ( req1 ) ;
70
70
const recording1 = getReplayRecordingContent ( req1 ) ;
@@ -95,7 +95,7 @@ sentryTest(
95
95
// -----------------------------------------------------------------------------------------
96
96
// Test page reload
97
97
98
- const [ , req2 ] = await Promise . all ( [ page . reload ( ) , reqPromise2 ] ) ;
98
+ const [ req2 ] = await Promise . all ( [ reqPromise2 , page . reload ( ) ] ) ;
99
99
100
100
const replayEvent2 = getReplayEvent ( req2 ) ;
101
101
const recording2 = getReplayRecordingContent ( req2 ) ;
@@ -104,7 +104,7 @@ sentryTest(
104
104
expect ( normalize ( recording2 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-2-snap-full' ) ;
105
105
expect ( recording2 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
106
106
107
- const [ , req3 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise3 ] ) ;
107
+ const [ req3 ] = await Promise . all ( [ reqPromise3 , page . click ( '#go-background' ) ] ) ;
108
108
109
109
const replayEvent3 = getReplayEvent ( req3 ) ;
110
110
const recording3 = getReplayRecordingContent ( req3 ) ;
@@ -133,7 +133,7 @@ sentryTest(
133
133
// -----------------------------------------------------------------------------------------
134
134
// Test subsequent link navigation to another page
135
135
136
- const [ , req4 ] = await Promise . all ( [ page . click ( 'a' ) , reqPromise4 ] ) ;
136
+ const [ req4 ] = await Promise . all ( [ reqPromise4 , page . click ( 'a' ) ] ) ;
137
137
138
138
const replayEvent4 = getReplayEvent ( req4 ) ;
139
139
const recording4 = getReplayRecordingContent ( req4 ) ;
@@ -156,7 +156,7 @@ sentryTest(
156
156
expect ( normalize ( recording4 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-4-snap-full' ) ;
157
157
expect ( recording4 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
158
158
159
- const [ , req5 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise5 ] ) ;
159
+ const [ req5 ] = await Promise . all ( [ reqPromise5 , page . click ( '#go-background' ) ] ) ;
160
160
161
161
const replayEvent5 = getReplayEvent ( req5 ) ;
162
162
const recording5 = getReplayRecordingContent ( req5 ) ;
@@ -201,7 +201,7 @@ sentryTest(
201
201
// -----------------------------------------------------------------------------------------
202
202
// Test subsequent navigation without a page reload (i.e. SPA navigation)
203
203
204
- const [ , req6 ] = await Promise . all ( [ page . click ( '#spa-navigation' ) , reqPromise6 ] ) ;
204
+ const [ req6 ] = await Promise . all ( [ reqPromise6 , page . click ( '#spa-navigation' ) ] ) ;
205
205
206
206
const replayEvent6 = getReplayEvent ( req6 ) ;
207
207
const recording6 = getReplayRecordingContent ( req6 ) ;
@@ -224,7 +224,7 @@ sentryTest(
224
224
expect ( recording6 . fullSnapshots . length ) . toEqual ( 0 ) ;
225
225
expect ( normalize ( recording6 . incrementalSnapshots ) ) . toMatchSnapshot ( 'seg-6-snap-incremental' ) ;
226
226
227
- const [ , req7 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise7 ] ) ;
227
+ const [ req7 ] = await Promise . all ( [ reqPromise7 , page . click ( '#go-background' ) ] ) ;
228
228
229
229
const replayEvent7 = getReplayEvent ( req7 ) ;
230
230
const recording7 = getReplayRecordingContent ( req7 ) ;
@@ -271,7 +271,7 @@ sentryTest(
271
271
// // -----------------------------------------------------------------------------------------
272
272
// // And just to finish this off, let's go back to the index page
273
273
274
- const [ , req8 ] = await Promise . all ( [ page . click ( 'a' ) , reqPromise8 ] ) ;
274
+ const [ req8 ] = await Promise . all ( [ reqPromise8 , page . click ( 'a' ) ] ) ;
275
275
276
276
const replayEvent8 = getReplayEvent ( req8 ) ;
277
277
const recording8 = getReplayRecordingContent ( req8 ) ;
@@ -284,7 +284,7 @@ sentryTest(
284
284
expect ( normalize ( recording8 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-8-snap-full' ) ;
285
285
expect ( recording8 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
286
286
287
- const [ , req9 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise9 ] ) ;
287
+ const [ req9 ] = await Promise . all ( [ reqPromise9 , page . click ( '#go-background' ) ] ) ;
288
288
289
289
const replayEvent9 = getReplayEvent ( req9 ) ;
290
290
const recording9 = getReplayRecordingContent ( req9 ) ;
0 commit comments