diff --git a/dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts b/dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts index 053c31c3881e..134e0f71fb95 100644 --- a/dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts @@ -7,6 +7,7 @@ import { expectedFCPPerformanceSpan, expectedFIDPerformanceSpan, expectedFPPerformanceSpan, + expectedINPPerformanceSpan, expectedLCPPerformanceSpan, expectedMemoryPerformanceSpan, expectedNavigationPerformanceSpan, @@ -51,6 +52,13 @@ sentryTest( await page.locator('#img-button').click(); + // Page hide to trigger INP + await page.evaluate(() => { + window.dispatchEvent(new Event('pagehide')); + }); + + await page.waitForTimeout(500); + const replayEvent1 = getReplayEvent(await reqPromise1); const { performanceSpans: performanceSpans1 } = getCustomRecordingEvents(await reqPromise1); @@ -66,6 +74,7 @@ sentryTest( expectedLCPPerformanceSpan, expectedCLSPerformanceSpan, expectedFIDPerformanceSpan, + expectedINPPerformanceSpan, expectedFPPerformanceSpan, expectedFCPPerformanceSpan, expectedMemoryPerformanceSpan, // two memory spans - once per flush