File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/integration-tests
suites/replay/customEvents Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
expectedNavigationPerformanceSpan ,
11
11
getExpectedReplayEvent ,
12
12
} from '../../../utils/replayEventTemplates' ;
13
+ import type { PerformanceSpan } from '../../../utils/replayHelpers' ;
13
14
import {
14
15
getCustomRecordingEvents ,
15
16
getReplayEvent ,
@@ -68,6 +69,13 @@ sentryTest(
68
69
expectedMemoryPerformanceSpan ,
69
70
] ) ,
70
71
) ;
72
+
73
+ const lcpSpan = collectedPerformanceSpans . find (
74
+ s => s . description === 'largest-contentful-paint' ,
75
+ ) as PerformanceSpan ;
76
+
77
+ // LCP spans should be point-in-time spans
78
+ expect ( lcpSpan ?. startTimestamp ) . toBeCloseTo ( lcpSpan ?. endTimestamp ) ;
71
79
} ,
72
80
) ;
73
81
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { Page, Request } from 'playwright';
6
6
import { envelopeRequestParser } from './helpers' ;
7
7
8
8
type CustomRecordingEvent = { tag : string ; payload : Record < string , unknown > } ;
9
- type PerformanceSpan = {
9
+ export type PerformanceSpan = {
10
10
op : string ;
11
11
description : string ;
12
12
startTimestamp : number ;
You can’t perform that action at this time.
0 commit comments