Skip to content

Commit 033b81e

Browse files
committed
fix test
1 parent 869bcac commit 033b81e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

4-
test('should capture orpc error', async ({ page }) => {
4+
test('should capture server-side orpc error', async ({ page }) => {
55
const orpcErrorPromise = waitForError('nextjs-orpc', errorEvent => {
6-
return errorEvent.exception?.values?.[0]?.value === 'You are hitting an error';
6+
return (
7+
errorEvent.exception?.values?.[0]?.value === 'You are hitting an error' &&
8+
errorEvent.contexts?.['runtime']?.name === 'node'
9+
);
710
});
811

912
await page.goto('/');

0 commit comments

Comments
 (0)