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 ccf999cfab34..7aed8bd3135a 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 @@ -16,7 +16,7 @@ test.fixme('should create AI spans with correct attributes and error linking', a ); 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 59c8f8681253..07725170bc9e 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 @@ -16,7 +16,7 @@ test.fixme('should create AI spans with correct attributes and error linking', a ); 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');