@@ -59,8 +59,8 @@ sentryTest('mutation after threshold results in slow click', async ({ getLocalTe
59
59
} ,
60
60
] ) ;
61
61
62
- expect ( slowClickBreadcrumbs [ 0 ] ?. data ?. timeAfterClickMs ) . toBeGreaterThan ( 300 ) ;
63
- expect ( slowClickBreadcrumbs [ 0 ] ?. data ?. timeAfterClickMs ) . toBeLessThan ( 2000 ) ;
62
+ expect ( slowClickBreadcrumbs [ 0 ] ?. data ?. timeAfterClickMs ) . toBeGreaterThan ( 3000 ) ;
63
+ expect ( slowClickBreadcrumbs [ 0 ] ?. data ?. timeAfterClickMs ) . toBeLessThan ( 3100 ) ;
64
64
} ) ;
65
65
66
66
sentryTest ( 'immediate mutation does not trigger slow click' , async ( { browserName, getLocalTestUrl, page } ) => {
@@ -165,56 +165,3 @@ sentryTest('inline click handler does not trigger slow click', async ({ getLocal
165
165
} ,
166
166
] ) ;
167
167
} ) ;
168
-
169
- sentryTest ( 'click is not ignored on div' , async ( { getLocalTestUrl, page } ) => {
170
- if ( shouldSkipReplayTest ( ) ) {
171
- sentryTest . skip ( ) ;
172
- }
173
-
174
- const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
175
-
176
- await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
177
- return route . fulfill ( {
178
- status : 200 ,
179
- contentType : 'application/json' ,
180
- body : JSON . stringify ( { id : 'test-id' } ) ,
181
- } ) ;
182
- } ) ;
183
-
184
- const url = await getLocalTestUrl ( { testDir : __dirname } ) ;
185
-
186
- await page . goto ( url ) ;
187
- await reqPromise0 ;
188
-
189
- const reqPromise1 = waitForReplayRequest ( page , ( event , res ) => {
190
- const { breadcrumbs } = getCustomRecordingEvents ( res ) ;
191
-
192
- return breadcrumbs . some ( breadcrumb => breadcrumb . category === 'ui.slowClickDetected' ) ;
193
- } ) ;
194
-
195
- await page . click ( '#mutationDiv' ) ;
196
-
197
- const { breadcrumbs } = getCustomRecordingEvents ( await reqPromise1 ) ;
198
-
199
- expect ( breadcrumbs . filter ( ( { category } ) => category === 'ui.slowClickDetected' ) ) . toEqual ( [
200
- {
201
- category : 'ui.slowClickDetected' ,
202
- data : {
203
- endReason : 'mutation' ,
204
- node : {
205
- attributes : {
206
- id : 'mutationDiv' ,
207
- } ,
208
- id : expect . any ( Number ) ,
209
- tagName : 'div' ,
210
- textContent : '******* ********' ,
211
- } ,
212
- nodeId : expect . any ( Number ) ,
213
- timeAfterClickMs : expect . any ( Number ) ,
214
- url : 'http://sentry-test.io/index.html' ,
215
- } ,
216
- message : 'body > div#mutationDiv' ,
217
- timestamp : expect . any ( Number ) ,
218
- } ,
219
- ] ) ;
220
- } ) ;
0 commit comments