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,6 +10,7 @@ test.skip('captures an exception', async ({ page }) => {
10
10
) ;
11
11
} ) ;
12
12
13
+ await page . waitForTimeout ( 5000 ) ;
13
14
await page . goto ( '/error-boundary' ) ;
14
15
await page . locator ( '#caughtErrorBtn' ) . click ( ) ;
15
16
const errorEvent = await errorEventPromise ;
@@ -31,7 +32,7 @@ test.skip('captures an exception', async ({ page }) => {
31
32
} ) ;
32
33
} ) ;
33
34
34
- test . skip ( 'captures a second exception after resetting the boundary' , async ( { page } ) => {
35
+ test ( 'captures a second exception after resetting the boundary' , async ( { page } ) => {
35
36
const firstErrorEventPromise = waitForError ( 'solidstart' , errorEvent => {
36
37
return (
37
38
! errorEvent . type &&
@@ -40,6 +41,7 @@ test.skip('captures a second exception after resetting the boundary', async ({ p
40
41
) ;
41
42
} ) ;
42
43
44
+ await page . waitForTimeout ( 5000 ) ;
43
45
await page . goto ( '/error-boundary' ) ;
44
46
await page . locator ( '#caughtErrorBtn' ) . click ( ) ;
45
47
const firstErrorEvent = await firstErrorEventPromise ;
0 commit comments