File tree Expand file tree Collapse file tree
packages/studio/tests/e2e Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,8 +332,9 @@ try {
332332 run . passed = run . longTaskPassed && run . timelineMounted && run . domSizePassed !== false ;
333333 }
334334 // Pooled over every measured step: one run's p95 is only its 4th-worst step, so a brief runner stall failed it.
335- const interactionP95Ms = percentile ( runs . flatMap ( ( run ) => run . interactions ) , 0.95 ) ;
336- const frameIntervalP95Ms = percentile ( runs . flatMap ( ( run ) => run . frameIntervals ) , 0.95 ) ;
335+ const pooled = ( key ) => runs . flatMap ( ( run ) => run [ key ] ) ;
336+ const interactionP95Ms = percentile ( pooled ( "interactions" ) , 0.95 ) ;
337+ const frameIntervalP95Ms = percentile ( pooled ( "frameIntervals" ) , 0.95 ) ;
337338 const responsivenessPassed =
338339 interactionP95Ms <= interactionLimitMs && frameIntervalP95Ms <= frameIntervalLimitMs ;
339340
You can’t perform that action at this time.
0 commit comments