Skip to content

Commit 005dd47

Browse files
committed
Fixme ai@v3 tests in nextjs-15
Same channel Vercel AI v3-unsupported gap as nextjs-16; the turbo/latest variants share this app dir so they're covered too.
1 parent d57d2ef commit 005dd47

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-error.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { expect, test } from '@playwright/test';
22
import { getSpanOp, waitForError, waitForStreamedSpans, waitForTransaction } from '@sentry-internal/test-utils';
33

4-
test('should create AI spans with correct attributes and error linking', async ({ page }) => {
4+
// FIXME: This app uses `ai@^3`, which the channel-based Vercel AI integration doesn't instrument
5+
// (it supports v4-v6 via the orchestrion transform and v7 via the native `ai:telemetry` channel).
6+
// With channel-based instrumentation now the default, no gen_ai spans are produced. Re-enable once
7+
// the app is upgraded to `ai@v7` (or v3 support is restored).
8+
test.fixme('should create AI spans with correct attributes and error linking', async ({ page }) => {
59
const aiTransactionPromise = waitForTransaction('nextjs-15', async transactionEvent => {
610
return transactionEvent.transaction === 'GET /ai-error-test';
711
});

dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-test.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { expect, test } from '@playwright/test';
22
import { getSpanOp, waitForStreamedSpans, waitForTransaction } from '@sentry-internal/test-utils';
33

4-
test('should create AI spans with correct attributes', async ({ page }) => {
4+
// FIXME: This app uses `ai@^3`, which the channel-based Vercel AI integration doesn't instrument
5+
// (it supports v4-v6 via the orchestrion transform and v7 via the native `ai:telemetry` channel).
6+
// With channel-based instrumentation now the default, no gen_ai spans are produced. Re-enable once
7+
// the app is upgraded to `ai@v7` (or v3 support is restored).
8+
test.fixme('should create AI spans with correct attributes', async ({ page }) => {
59
const aiTransactionPromise = waitForTransaction('nextjs-15', async transactionEvent => {
610
return transactionEvent.transaction === 'GET /ai-test';
711
});

0 commit comments

Comments
 (0)