Skip to content

Commit 4d3cdab

Browse files
committed
await pageload
1 parent b061a23 commit 4d3cdab

File tree

1 file changed

+2
-8
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/interactions-navigation-click

1 file changed

+2
-8
lines changed

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/interactions-navigation-click/test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import { expect } from '@playwright/test';
2-
import type { Event as SentryEvent } from '@sentry/core';
32
import { sentryTest } from '../../../../utils/fixtures';
4-
import {
5-
envelopeRequestParser,
6-
getFirstSentryEnvelopeRequest,
7-
shouldSkipTracingTest,
8-
waitForTransactionRequest,
9-
} from '../../../../utils/helpers';
3+
import { envelopeRequestParser, shouldSkipTracingTest, waitForTransactionRequest } from '../../../../utils/helpers';
104

115
sentryTest(
126
'click-triggered navigation should produce a root navigation transaction',
@@ -18,7 +12,7 @@ sentryTest(
1812
const url = await getLocalTestUrl({ testDir: __dirname });
1913

2014
await page.goto(url);
21-
await getFirstSentryEnvelopeRequest<SentryEvent>(page);
15+
await waitForTransactionRequest(page); // "pageload" root span
2216

2317
const interactionRequestPromise = waitForTransactionRequest(
2418
page,

0 commit comments

Comments
 (0)