File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
dev-packages/e2e-tests/test-applications/nextjs-turbo/tests Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test' ;
22import { 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
49test ( '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 } ) ;
Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test' ;
22import { 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
49test ( '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 } ) ;
You can’t perform that action at this time.
0 commit comments