Skip to content

Commit caf5306

Browse files
authored
test(e2e-nextjs): Check NextJS client error transaction field (#11424)
Super small PR to check that an error event has a valid `transaction` field in NextJS. Besides testing, there was nothing specifically to do for NextJS since as far as I can tell we never update a pageload or navigation span name. ref #10846
1 parent a6ab21d commit caf5306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/exceptions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ test('Sends a client-side exception to Sentry', async ({ page }) => {
1919
const errorEvent = await errorEventPromise;
2020
const exceptionEventId = errorEvent.event_id;
2121

22+
expect(errorEvent.transaction).toBe('/');
23+
2224
await expect
2325
.poll(
2426
async () => {

0 commit comments

Comments
 (0)