Skip to content

Commit 2c3a27f

Browse files
committed
fix(test): Unflake LCP test
1 parent 216aaeb commit 2c3a27f

File tree

1 file changed

+3
-1
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ sentryTest(
1515
sentryTest.skip();
1616
}
1717

18+
page.route('**', route => route.continue());
1819
await page.route('**/path/to/image.png', (route: Route) =>
1920
route.fulfill({ path: `${__dirname}/assets/sentry-logo-600x179.png` }),
2021
);
2122

2223
const url = await getLocalTestPath({ testDir: __dirname });
24+
2325
const [eventData] = await Promise.all([
2426
getFirstSentryEnvelopeRequest<Event>(page),
2527
page.goto(url),
26-
page.click('button'),
28+
page.locator('button').click(),
2729
]);
2830

2931
expect(eventData.measurements).toBeDefined();

0 commit comments

Comments
 (0)