Skip to content

Commit 70d4a20

Browse files
committed
test
1 parent 1a22993 commit 70d4a20

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

dev-packages/e2e-tests/test-applications/nextjs-turbo/tests/app-router/pageload-transaction.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3+
import { parseSemver } from '@sentry/core';
4+
5+
const packageJson = require('../../package.json');
6+
const nextjsVersion = packageJson.dependencies.next;
7+
const { major, minor } = parseSemver(nextjsVersion);
38

49
test('Should record pageload transactions (this test verifies that the client SDK is initialized)', async ({
510
page,
611
}) => {
12+
// TODO: Remove this skippage when Next.js 15.3.0 is released and bump version in package json to 15.3.0
13+
test.skip(
14+
major === 15 && minor !== undefined && minor < 3,
15+
'Next.js version does not support clientside instrumentation',
16+
);
17+
718
const pageloadTransactionPromise = waitForTransaction('nextjs-turbo', async transactionEvent => {
819
return transactionEvent?.transaction === '/pageload-transaction';
920
});

dev-packages/e2e-tests/test-applications/nextjs-turbo/tests/pages-router/client-trace-propagation.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3+
import { parseSemver } from '@sentry/core';
4+
5+
const packageJson = require('../../package.json');
6+
const nextjsVersion = packageJson.dependencies.next;
7+
const { major, minor } = parseSemver(nextjsVersion);
38

49
test('Should propagate traces from server to client in pages router', async ({ page }) => {
10+
// TODO: Remove this skippage when Next.js 15.3.0 is released and bump version in package json to 15.3.0
11+
test.skip(
12+
major === 15 && minor !== undefined && minor < 3,
13+
'Next.js version does not support clientside instrumentation',
14+
);
15+
516
const serverTransactionPromise = waitForTransaction('nextjs-turbo', async transactionEvent => {
617
return transactionEvent?.transaction === 'GET /[param]/pages-router-client-trace-propagation';
718
});

0 commit comments

Comments
 (0)