File tree 2 files changed +22
-0
lines changed
dev-packages/e2e-tests/test-applications/nextjs-turbo/tests
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { expect , test } from '@playwright/test' ;
2
2
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 ) ;
3
8
4
9
test ( 'Should record pageload transactions (this test verifies that the client SDK is initialized)' , async ( {
5
10
page,
6
11
} ) => {
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
+
7
18
const pageloadTransactionPromise = waitForTransaction ( 'nextjs-turbo' , async transactionEvent => {
8
19
return transactionEvent ?. transaction === '/pageload-transaction' ;
9
20
} ) ;
Original file line number Diff line number Diff line change 1
1
import { expect , test } from '@playwright/test' ;
2
2
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 ) ;
3
8
4
9
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
+
5
16
const serverTransactionPromise = waitForTransaction ( 'nextjs-turbo' , async transactionEvent => {
6
17
return transactionEvent ?. transaction === 'GET /[param]/pages-router-client-trace-propagation' ;
7
18
} ) ;
You can’t perform that action at this time.
0 commit comments