Skip to content

Commit 8bdd1c4

Browse files
committed
explicitly await async operations in browser integration tests
1 parent e78ccd8 commit 8bdd1c4

File tree

3 files changed

+5
-5
lines changed
  • packages/integration-tests/suites/tracing

3 files changed

+5
-5
lines changed

packages/integration-tests/suites/tracing/browsertracing/backgroundtab-pageload/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sentryTest('should finish pageload transaction when the page goes background', a
88

99
await page.goto(url);
1010

11-
page.click('#go-background');
11+
void page.click('#go-background');
1212

1313
const pageloadTransaction = await getSentryTransactionRequest(page);
1414

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)