diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/tests/streaming-rsc-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/tests/streaming-rsc-error.test.ts index 6133d0fa29b1..d1bad46afe5f 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/tests/streaming-rsc-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/tests/streaming-rsc-error.test.ts @@ -23,7 +23,9 @@ test('Should capture errors for crashing streaming promises in server components return transactionEvent?.transaction === 'GET /streaming-rsc-error/[param]'; }); - await page.goto(`/streaming-rsc-error/123`); + // The streaming RSC error can interrupt the HTTP response, causing the navigation to reject + // (e.g. net::ERR_ABORTED) even though the error and transaction are still captured. + await page.goto(`/streaming-rsc-error/123`).catch(() => {}); const errorEvent = await errorEventPromise; const serverTransactionEvent = await serverTransactionPromise; diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/tests/streaming-rsc-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/tests/streaming-rsc-error.test.ts index 68d8b1bb8bcf..230ab730ed83 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/tests/streaming-rsc-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/tests/streaming-rsc-error.test.ts @@ -12,7 +12,9 @@ test('Should capture errors for crashing streaming promises in server components return transactionEvent?.transaction === 'GET /streaming-rsc-error/[param]'; }); - await page.goto(`/streaming-rsc-error/123`); + // The streaming RSC error can interrupt the HTTP response, causing the navigation to reject + // (e.g. net::ERR_ABORTED) even though the error and transaction are still captured. + await page.goto(`/streaming-rsc-error/123`).catch(() => {}); const errorEvent = await errorEventPromise; const serverTransactionEvent = await serverTransactionPromise; diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/tests/streaming-rsc-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/tests/streaming-rsc-error.test.ts index ba42d9fadbb9..6819554087b8 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/tests/streaming-rsc-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/tests/streaming-rsc-error.test.ts @@ -12,7 +12,9 @@ test('Should capture errors for crashing streaming promises in server components return transactionEvent?.transaction === 'GET /streaming-rsc-error/[param]'; }); - await page.goto(`/streaming-rsc-error/123`); + // The streaming RSC error can interrupt the HTTP response, causing the navigation to reject + // (e.g. net::ERR_ABORTED) even though the error and transaction are still captured. + await page.goto(`/streaming-rsc-error/123`).catch(() => {}); const errorEvent = await errorEventPromise; const serverTransactionEvent = await serverTransactionPromise; diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16/tests/streaming-rsc-error.test.ts b/dev-packages/e2e-tests/test-applications/nextjs-16/tests/streaming-rsc-error.test.ts index f22932a0c65f..ab01f5806fea 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16/tests/streaming-rsc-error.test.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16/tests/streaming-rsc-error.test.ts @@ -12,7 +12,9 @@ test('Should capture errors for crashing streaming promises in server components return transactionEvent?.transaction === 'GET /streaming-rsc-error/[param]'; }); - await page.goto(`/streaming-rsc-error/123`); + // The streaming RSC error can interrupt the HTTP response, causing the navigation to reject + // (e.g. net::ERR_ABORTED) even though the error and transaction are still captured. + await page.goto(`/streaming-rsc-error/123`).catch(() => {}); const errorEvent = await errorEventPromise; const serverTransactionEvent = await serverTransactionPromise;