@@ -20,6 +20,7 @@ test('Creates a navigation transaction for app router routes', async ({ page })
20
20
const randomRoute = String ( Math . random ( ) ) ;
21
21
22
22
const clientPageloadTransactionPromise = waitForTransaction ( 'nextjs-13-app-dir' , transactionEvent => {
23
+ console . log ( 'transaction1' , JSON . stringify ( transactionEvent , null , 2 ) ) ;
23
24
return (
24
25
transactionEvent ?. transaction === `/server-component/parameter/${ randomRoute } ` &&
25
26
transactionEvent . contexts ?. trace ?. op === 'pageload'
@@ -31,13 +32,15 @@ test('Creates a navigation transaction for app router routes', async ({ page })
31
32
await page . getByText ( 'Page (/server-component/parameter/[parameter])' ) . isVisible ( ) ;
32
33
33
34
const clientNavigationTransactionPromise = waitForTransaction ( 'nextjs-13-app-dir' , transactionEvent => {
35
+ console . log ( 'transaction2' , JSON . stringify ( transactionEvent , null , 2 ) ) ;
34
36
return (
35
37
transactionEvent ?. transaction === '/server-component/parameter/foo/bar/baz' &&
36
38
transactionEvent . contexts ?. trace ?. op === 'navigation'
37
39
) ;
38
40
} ) ;
39
41
40
42
const serverComponentTransactionPromise = waitForTransaction ( 'nextjs-13-app-dir' , async transactionEvent => {
43
+ console . log ( 'transaction3' , JSON . stringify ( transactionEvent , null , 2 ) ) ;
41
44
return (
42
45
transactionEvent ?. transaction === 'Page Server Component (/server-component/parameter/[...parameters])' &&
43
46
( await clientNavigationTransactionPromise ) . contexts ?. trace ?. trace_id ===
0 commit comments