@@ -3,7 +3,7 @@ import { waitForError } from '@sentry-internal/test-utils';
33
44test ( 'captures an exception' , async ( { page } ) => {
55 const errorEventPromise = waitForError ( 'solid' , errorEvent => {
6- return ! errorEvent . type ;
6+ return ! errorEvent . type && errorEvent . transaction === '/error-boundary-example' ;
77 } ) ;
88
99 const [ , errorEvent ] = await Promise . all ( [ page . goto ( '/error-boundary-example' ) , errorEventPromise ] ) ;
@@ -27,7 +27,7 @@ test('captures an exception', async ({ page }) => {
2727
2828test ( 'captures a second exception after resetting the boundary' , async ( { page } ) => {
2929 const firstErrorEventPromise = waitForError ( 'solid' , errorEvent => {
30- return ! errorEvent . type ;
30+ return ! errorEvent . type && errorEvent . transaction === '/error-boundary-example' ;
3131 } ) ;
3232
3333 const [ , firstErrorEvent ] = await Promise . all ( [ page . goto ( '/error-boundary-example' ) , firstErrorEventPromise ] ) ;
@@ -49,7 +49,7 @@ test('captures a second exception after resetting the boundary', async ({ page }
4949 } ) ;
5050
5151 const secondErrorEventPromise = waitForError ( 'solid' , errorEvent => {
52- return ! errorEvent . type ;
52+ return ! errorEvent . type && errorEvent . transaction === '/error-boundary-example' ;
5353 } ) ;
5454
5555 const [ , secondErrorEvent ] = await Promise . all ( [
0 commit comments