File tree Expand file tree Collapse file tree
dev-packages/e2e-tests/test-applications/nextjs-15/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,16 +3,15 @@ import { waitForTransaction } from '@sentry-internal/test-utils';
33
44test ( 'should create AI spans with correct attributes' , async ( { page } ) => {
55 const aiTransactionPromise = waitForTransaction ( 'nextjs-15' , async transactionEvent => {
6- return transactionEvent ? .transaction === 'ai-test' ;
6+ return transactionEvent . transaction === 'GET / ai-test' ;
77 } ) ;
88
99 await page . goto ( '/ai-test' ) ;
1010
1111 const aiTransaction = await aiTransactionPromise ;
1212
1313 expect ( aiTransaction ) . toBeDefined ( ) ;
14- expect ( aiTransaction . contexts ?. trace ?. op ) . toBe ( 'function' ) ;
15- expect ( aiTransaction . transaction ) . toBe ( 'ai-test' ) ;
14+ expect ( aiTransaction . transaction ) . toBe ( 'GET /ai-test' ) ;
1615
1716 const spans = aiTransaction . spans || [ ] ;
1817
You can’t perform that action at this time.
0 commit comments