Skip to content

Commit f0c8292

Browse files
committed
fix test
1 parent d0e0bac commit f0c8292

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp

1 file changed

+2
-2
lines changed

dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ sentryTest('captures LCP vitals with element details.', async ({ browserName, ge
3636
expect(eventData.contexts?.trace?.data?.['lcp.size']).toBeGreaterThan(0);
3737
expect(eventData.contexts?.trace?.data?.['lcp.loadTime']).toBeGreaterThan(0);
3838

39-
// renderTime is not set because we do not return the `Timing-Allow-Origin` header
39+
// renderTime is 0 because we don't return the `Timing-Allow-Origin` header
4040
// and the image is loaded from a 3rd party origin
41-
expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBeUndefined();
41+
expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBe(0);
4242

4343
// The LCP value should be the loadTime because the renderTime is not set
4444
expect(eventData.measurements?.lcp?.value).toBeCloseTo(eventData.contexts?.trace?.data?.['lcp.loadTime']);

0 commit comments

Comments
 (0)