Skip to content

Commit 49460a4

Browse files
committed
add missing await
1 parent c5c20ee commit 49460a4

File tree

1 file changed

+2
-1
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/async-spans

1 file changed

+2
-1
lines changed

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/async-spans/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ sentryTest(
1111
'async spans with different durations lead to unexpected behavior in browser (no "asynchronous context tracking")',
1212
async ({ getLocalTestPath, page }) => {
1313
const url = await getLocalTestPath({ testDir: __dirname });
14-
page.goto(url);
14+
await page.goto(url);
1515

1616
await page.waitForFunction(
1717
() =>
18+
typeof window !== 'undefined' &&
1819
(window as unknown as WindowWithSpan).firstWaitingSpan &&
1920
(window as unknown as WindowWithSpan).secondWaitingSpan &&
2021
(window as unknown as WindowWithSpan).thirdWaitingSpan,

0 commit comments

Comments
 (0)