From 0dea16002181202af6dc6a83a62e637d1c17bc8f Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Tue, 4 Aug 2026 11:06:46 +0200 Subject: [PATCH] test(v10/e2e): Fix type error in nextjs ai-error tests Backport of: #22978 --- .../test-applications/nextjs-15/tests/ai-error.test.ts | 2 +- .../test-applications/nextjs-16/tests/ai-error.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-error.test.ts index 81bf9d04ba97..609585079b0e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-error.test.ts @@ -12,7 +12,7 @@ test('should create AI spans with correct attributes and error linking', async ( ); const errorEventPromise = waitForError('nextjs-15', async errorEvent => { - return errorEvent.exception?.values?.[0]?.value?.includes('Tool call failed'); + return !!errorEvent.exception?.values?.[0]?.value?.includes('Tool call failed'); }); await page.goto('/ai-error-test'); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16/tests/ai-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-16/tests/ai-error.test.ts index 62e6798773bd..fa40bc41da46 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16/tests/ai-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16/tests/ai-error.test.ts @@ -12,7 +12,7 @@ test('should create AI spans with correct attributes and error linking', async ( ); const errorEventPromise = waitForError('nextjs-16', async errorEvent => { - return errorEvent.exception?.values?.[0]?.value?.includes('Tool call failed'); + return !!errorEvent.exception?.values?.[0]?.value?.includes('Tool call failed'); }); await page.goto('/ai-error-test');