Skip to content

Commit 1530703

Browse files
author
Luca Forstner
committed
.
1 parent cf111cc commit 1530703

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-packages/e2e-tests/test-applications/nextjs-15/tests/prefetch-spans.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
33

4-
test('Prefetch client spans should have the right op', async ({ page }) => {
4+
test('Prefetch client spans should have a http.request.prefetch attribute', async ({ page }) => {
5+
test.skip(process.env.TEST_ENV === 'development', "Prefetch requests don't have the prefetch header in dev mode");
6+
57
const pageloadTransactionPromise = waitForTransaction('nextjs-15', async transactionEvent => {
68
return transactionEvent?.transaction === '/prefetching';
79
});

0 commit comments

Comments
 (0)