Skip to content

Commit 09df1d7

Browse files
authored
fixup! test(nextjs): Add vinext e2e tests
1 parent 8345b54 commit 09df1d7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎dev-packages/e2e-tests/test-applications/nextjs-16/tests/auth-interrupts.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { expect, test } from '@playwright/test';
22
import { collectStreamedSpansUntilSegment, waitForError, waitForStreamedSpan } from '@sentry-internal/test-utils';
3+
import { isVinext } from './isVinext';
34

45
const cases = [
56
{ kind: 'forbidden', label: 'Forbidden', status: 403, statusMessage: 'permission_denied' },
@@ -35,7 +36,8 @@ for (const { kind, label, status, statusMessage } of cases) {
3536
expect(segmentSpan.attributes['http.response.status_code']?.value).toBe(status);
3637

3738
// Server components are only wrapped by our webpack loader, so only webpack builds set a status on the render span.
38-
if (!segmentSpan.attributes['turbopack']) {
39+
// vinext builds with neither webpack nor Turbopack.
40+
if (!segmentSpan.attributes['turbopack'] && !isVinext) {
3941
expect(spans).toContainEqual(
4042
expect.objectContaining({
4143
name: `render route (app) /auth-interrupts/${kind}`,
@@ -51,6 +53,8 @@ for (const { kind, label, status, statusMessage } of cases) {
5153
});
5254

5355
test(`Does not capture ${kind}() in a server action and marks the action span`, async ({ page }) => {
56+
test.skip(isVinext, `vinext rethrows ${kind}() of a server action in the browser, where it is an uncaught error`);
57+
5458
const errorPromise = waitForAuthInterruptError(status);
5559
const spanPromise = waitForStreamedSpan('nextjs-16', span => {
5660
return span.name === `${kind}ServerAction` && span.is_segment;

‎dev-packages/e2e-tests/test-applications/vinext-cf-workers/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@sentry/cloudflare": "file:../../packed/sentry-cloudflare-packed.tgz",
1515
"@sentry/nextjs": "file:../../packed/sentry-nextjs-packed.tgz",
16-
"next": "16.2.2",
16+
"next": "16.2.11",
1717
"react": "^19.3.0",
1818
"react-dom": "^19.3.0"
1919
},

0 commit comments

Comments
 (0)