@@ -56,15 +56,15 @@ sentryTest(
5656
5757 const url = await getLocalTestPath ( { testDir : __dirname } ) ;
5858
59- const [ , req0 ] = await Promise . all ( [ page . goto ( url ) , reqPromise0 ] ) ;
59+ const [ req0 ] = await Promise . all ( [ reqPromise0 , page . goto ( url ) ] ) ;
6060 const replayEvent0 = getReplayEvent ( req0 ) ;
6161 const recording0 = getReplayRecordingContent ( req0 ) ;
6262
6363 expect ( replayEvent0 ) . toEqual ( getExpectedReplayEvent ( { segment_id : 0 } ) ) ;
6464 expect ( normalize ( recording0 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-0-snap-full' ) ;
6565 expect ( recording0 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
6666
67- const [ , req1 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise1 ] ) ;
67+ const [ req1 ] = await Promise . all ( [ reqPromise1 , page . click ( '#go-background' ) ] ) ;
6868
6969 const replayEvent1 = getReplayEvent ( req1 ) ;
7070 const recording1 = getReplayRecordingContent ( req1 ) ;
@@ -95,7 +95,7 @@ sentryTest(
9595 // -----------------------------------------------------------------------------------------
9696 // Test page reload
9797
98- const [ , req2 ] = await Promise . all ( [ page . reload ( ) , reqPromise2 ] ) ;
98+ const [ req2 ] = await Promise . all ( [ reqPromise2 , page . reload ( ) ] ) ;
9999
100100 const replayEvent2 = getReplayEvent ( req2 ) ;
101101 const recording2 = getReplayRecordingContent ( req2 ) ;
@@ -104,7 +104,7 @@ sentryTest(
104104 expect ( normalize ( recording2 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-2-snap-full' ) ;
105105 expect ( recording2 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
106106
107- const [ , req3 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise3 ] ) ;
107+ const [ req3 ] = await Promise . all ( [ reqPromise3 , page . click ( '#go-background' ) ] ) ;
108108
109109 const replayEvent3 = getReplayEvent ( req3 ) ;
110110 const recording3 = getReplayRecordingContent ( req3 ) ;
@@ -133,7 +133,7 @@ sentryTest(
133133 // -----------------------------------------------------------------------------------------
134134 // Test subsequent link navigation to another page
135135
136- const [ , req4 ] = await Promise . all ( [ page . click ( 'a' ) , reqPromise4 ] ) ;
136+ const [ req4 ] = await Promise . all ( [ reqPromise4 , page . click ( 'a' ) ] ) ;
137137
138138 const replayEvent4 = getReplayEvent ( req4 ) ;
139139 const recording4 = getReplayRecordingContent ( req4 ) ;
@@ -156,7 +156,7 @@ sentryTest(
156156 expect ( normalize ( recording4 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-4-snap-full' ) ;
157157 expect ( recording4 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
158158
159- const [ , req5 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise5 ] ) ;
159+ const [ req5 ] = await Promise . all ( [ reqPromise5 , page . click ( '#go-background' ) ] ) ;
160160
161161 const replayEvent5 = getReplayEvent ( req5 ) ;
162162 const recording5 = getReplayRecordingContent ( req5 ) ;
@@ -201,7 +201,7 @@ sentryTest(
201201 // -----------------------------------------------------------------------------------------
202202 // Test subsequent navigation without a page reload (i.e. SPA navigation)
203203
204- const [ , req6 ] = await Promise . all ( [ page . click ( '#spa-navigation' ) , reqPromise6 ] ) ;
204+ const [ req6 ] = await Promise . all ( [ reqPromise6 , page . click ( '#spa-navigation' ) ] ) ;
205205
206206 const replayEvent6 = getReplayEvent ( req6 ) ;
207207 const recording6 = getReplayRecordingContent ( req6 ) ;
@@ -224,7 +224,7 @@ sentryTest(
224224 expect ( recording6 . fullSnapshots . length ) . toEqual ( 0 ) ;
225225 expect ( normalize ( recording6 . incrementalSnapshots ) ) . toMatchSnapshot ( 'seg-6-snap-incremental' ) ;
226226
227- const [ , req7 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise7 ] ) ;
227+ const [ req7 ] = await Promise . all ( [ reqPromise7 , page . click ( '#go-background' ) ] ) ;
228228
229229 const replayEvent7 = getReplayEvent ( req7 ) ;
230230 const recording7 = getReplayRecordingContent ( req7 ) ;
@@ -271,7 +271,7 @@ sentryTest(
271271 // // -----------------------------------------------------------------------------------------
272272 // // And just to finish this off, let's go back to the index page
273273
274- const [ , req8 ] = await Promise . all ( [ page . click ( 'a' ) , reqPromise8 ] ) ;
274+ const [ req8 ] = await Promise . all ( [ reqPromise8 , page . click ( 'a' ) ] ) ;
275275
276276 const replayEvent8 = getReplayEvent ( req8 ) ;
277277 const recording8 = getReplayRecordingContent ( req8 ) ;
@@ -284,7 +284,7 @@ sentryTest(
284284 expect ( normalize ( recording8 . fullSnapshots ) ) . toMatchSnapshot ( 'seg-8-snap-full' ) ;
285285 expect ( recording8 . incrementalSnapshots . length ) . toEqual ( 0 ) ;
286286
287- const [ , req9 ] = await Promise . all ( [ page . click ( '#go-background' ) , reqPromise9 ] ) ;
287+ const [ req9 ] = await Promise . all ( [ reqPromise9 , page . click ( '#go-background' ) ] ) ;
288288
289289 const replayEvent9 = getReplayEvent ( req9 ) ;
290290 const recording9 = getReplayRecordingContent ( req9 ) ;
0 commit comments