1
1
import { expect , test } from '@playwright/test' ;
2
2
import { waitForError } from '@sentry-internal/test-utils' ;
3
3
4
- test . skip ( 'captures an exception' , async ( { page } ) => {
4
+ test ( 'captures an exception' , async ( { page } ) => {
5
5
const errorEventPromise = waitForError ( 'solidstart' , errorEvent => {
6
6
return (
7
7
! errorEvent . type &&
@@ -10,7 +10,7 @@ test.skip('captures an exception', async ({ page }) => {
10
10
) ;
11
11
} ) ;
12
12
13
- await page . goto ( '/client- error' ) ;
13
+ await page . goto ( '/error-boundary ' ) ;
14
14
await page . locator ( '#caughtErrorBtn' ) . click ( ) ;
15
15
const errorEvent = await errorEventPromise ;
16
16
@@ -27,11 +27,11 @@ test.skip('captures an exception', async ({ page }) => {
27
27
} ,
28
28
] ,
29
29
} ,
30
- transaction : '/client- error' ,
30
+ transaction : '/error-boundary ' ,
31
31
} ) ;
32
32
} ) ;
33
33
34
- test . skip ( 'captures a second exception after resetting the boundary' , async ( { page } ) => {
34
+ test ( 'captures a second exception after resetting the boundary' , async ( { page } ) => {
35
35
const firstErrorEventPromise = waitForError ( 'solidstart' , errorEvent => {
36
36
return (
37
37
! errorEvent . type &&
@@ -40,7 +40,7 @@ test.skip('captures a second exception after resetting the boundary', async ({ p
40
40
) ;
41
41
} ) ;
42
42
43
- await page . goto ( '/client- error' ) ;
43
+ await page . goto ( '/error-boundary ' ) ;
44
44
await page . locator ( '#caughtErrorBtn' ) . click ( ) ;
45
45
const firstErrorEvent = await firstErrorEventPromise ;
46
46
@@ -57,7 +57,7 @@ test.skip('captures a second exception after resetting the boundary', async ({ p
57
57
} ,
58
58
] ,
59
59
} ,
60
- transaction : '/client- error' ,
60
+ transaction : '/error-boundary ' ,
61
61
} ) ;
62
62
63
63
const secondErrorEventPromise = waitForError ( 'solidstart' , errorEvent => {
@@ -85,6 +85,6 @@ test.skip('captures a second exception after resetting the boundary', async ({ p
85
85
} ,
86
86
] ,
87
87
} ,
88
- transaction : '/client- error' ,
88
+ transaction : '/error-boundary ' ,
89
89
} ) ;
90
90
} ) ;
0 commit comments