@@ -88,6 +88,8 @@ sentryTest(
88
88
89
89
const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
90
90
const reqPromise1 = waitForReplayRequest ( page , 1 ) ;
91
+ const reqPromise2 = waitForReplayRequest ( page , 2 ) ;
92
+ const reqPromise3 = waitForReplayRequest ( page , 3 ) ;
91
93
92
94
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
93
95
return route . fulfill ( {
@@ -103,8 +105,6 @@ sentryTest(
103
105
await reqPromise0 ;
104
106
105
107
await page . click ( '#error' ) ;
106
- await page . click ( '#img' ) ;
107
- await page . click ( '.sentry-unmask' ) ;
108
108
await forceFlushReplay ( ) ;
109
109
const req1 = await reqPromise1 ;
110
110
const content1 = getReplayRecordingContent ( req1 ) ;
@@ -131,7 +131,11 @@ sentryTest(
131
131
] ) ,
132
132
) ;
133
133
134
- expect ( content1 . breadcrumbs ) . toEqual (
134
+ await page . click ( '#img' ) ;
135
+ await forceFlushReplay ( ) ;
136
+ const req2 = await reqPromise2 ;
137
+ const content2 = getReplayRecordingContent ( req2 ) ;
138
+ expect ( content2 . breadcrumbs ) . toEqual (
135
139
expect . arrayContaining ( [
136
140
{
137
141
...expectedClickBreadcrumb ,
@@ -151,7 +155,11 @@ sentryTest(
151
155
] ) ,
152
156
) ;
153
157
154
- expect ( content1 . breadcrumbs ) . toEqual (
158
+ await page . click ( '.sentry-unmask' ) ;
159
+ await forceFlushReplay ( ) ;
160
+ const req3 = await reqPromise3 ;
161
+ const content3 = getReplayRecordingContent ( req3 ) ;
162
+ expect ( content3 . breadcrumbs ) . toEqual (
155
163
expect . arrayContaining ( [
156
164
{
157
165
...expectedClickBreadcrumb ,
0 commit comments