Skip to content

Commit 4146840

Browse files
committed
explicitly await async operations in web vitals tests
1 parent e78ccd8 commit 4146840

File tree

2 files changed

+4
-4
lines changed
  • packages/integration-tests/suites/tracing/metrics

2 files changed

+4
-4
lines changed

packages/integration-tests/suites/tracing/metrics/web-vitals-fid/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ sentryTest('should capture a FID vital.', async ({ browserName, getLocalTestPath
1111

1212
const url = await getLocalTestPath({ testDir: __dirname });
1313

14-
page.goto(url);
14+
await page.goto(url);
1515
// To trigger FID
16-
page.click('#fid-btn');
16+
await page.click('#fid-btn');
1717

1818
const eventData = await getSentryTransactionRequest(page);
1919

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ sentryTest('should capture a LCP vital with element details.', async ({ browserN
1313
);
1414

1515
const url = await getLocalTestPath({ testDir: __dirname });
16-
page.goto(url);
16+
await page.goto(url);
1717

1818
// Force closure of LCP listener.
19-
page.click('body');
19+
await page.click('body');
2020
const eventData = await getSentryTransactionRequest(page);
2121

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

0 commit comments

Comments
 (0)