@@ -2,8 +2,10 @@ import { expect } from '@playwright/test';
2
2
3
3
import { sentryTest } from '../../../utils/fixtures' ;
4
4
import {
5
+ expectedCLSPerformanceSpan ,
5
6
expectedClickBreadcrumb ,
6
7
expectedFCPPerformanceSpan ,
8
+ expectedFIDPerformanceSpan ,
7
9
expectedFPPerformanceSpan ,
8
10
expectedLCPPerformanceSpan ,
9
11
expectedMemoryPerformanceSpan ,
@@ -78,11 +80,13 @@ sentryTest(
78
80
const collectedPerformanceSpans = [ ...recording0 . performanceSpans , ...recording1 . performanceSpans ] ;
79
81
const collectedBreadcrumbs = [ ...recording0 . breadcrumbs , ...recording1 . breadcrumbs ] ;
80
82
81
- expect ( collectedPerformanceSpans . length ) . toEqual ( 6 ) ;
83
+ expect ( collectedPerformanceSpans . length ) . toEqual ( 8 ) ;
82
84
expect ( collectedPerformanceSpans ) . toEqual (
83
85
expect . arrayContaining ( [
84
86
expectedNavigationPerformanceSpan ,
85
87
expectedLCPPerformanceSpan ,
88
+ expectedCLSPerformanceSpan ,
89
+ expectedFIDPerformanceSpan ,
86
90
expectedFPPerformanceSpan ,
87
91
expectedFCPPerformanceSpan ,
88
92
expectedMemoryPerformanceSpan , // two memory spans - once per flush
@@ -116,11 +120,13 @@ sentryTest(
116
120
const collectedPerformanceSpansAfterReload = [ ...recording2 . performanceSpans , ...recording3 . performanceSpans ] ;
117
121
const collectedBreadcrumbsAdterReload = [ ...recording2 . breadcrumbs , ...recording3 . breadcrumbs ] ;
118
122
119
- expect ( collectedPerformanceSpansAfterReload . length ) . toEqual ( 6 ) ;
123
+ expect ( collectedPerformanceSpansAfterReload . length ) . toEqual ( 8 ) ;
120
124
expect ( collectedPerformanceSpansAfterReload ) . toEqual (
121
125
expect . arrayContaining ( [
122
126
expectedReloadPerformanceSpan ,
123
127
expectedLCPPerformanceSpan ,
128
+ expectedCLSPerformanceSpan ,
129
+ expectedFIDPerformanceSpan ,
124
130
expectedFPPerformanceSpan ,
125
131
expectedFCPPerformanceSpan ,
126
132
expectedMemoryPerformanceSpan ,
@@ -188,6 +194,8 @@ sentryTest(
188
194
expect . arrayContaining ( [
189
195
expectedNavigationPerformanceSpan ,
190
196
expectedLCPPerformanceSpan ,
197
+ expectedCLSPerformanceSpan ,
198
+ expectedFIDPerformanceSpan ,
191
199
expectedFPPerformanceSpan ,
192
200
expectedFCPPerformanceSpan ,
193
201
expectedMemoryPerformanceSpan ,
@@ -304,11 +312,13 @@ sentryTest(
304
312
] ;
305
313
const collectedBreadcrumbsAfterIndexNavigation = [ ...recording8 . breadcrumbs , ...recording9 . breadcrumbs ] ;
306
314
307
- expect ( collectedPerformanceSpansAfterIndexNavigation . length ) . toEqual ( 6 ) ;
315
+ expect ( collectedPerformanceSpansAfterIndexNavigation . length ) . toEqual ( 8 ) ;
308
316
expect ( collectedPerformanceSpansAfterIndexNavigation ) . toEqual (
309
317
expect . arrayContaining ( [
310
318
expectedNavigationPerformanceSpan ,
311
319
expectedLCPPerformanceSpan ,
320
+ expectedCLSPerformanceSpan ,
321
+ expectedFIDPerformanceSpan ,
312
322
expectedFPPerformanceSpan ,
313
323
expectedFCPPerformanceSpan ,
314
324
expectedMemoryPerformanceSpan ,
0 commit comments