File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/browser-integration-tests/suites/replay/dsc Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,19 @@ sentryTest(
54
54
sentryTest . skip ( ) ;
55
55
}
56
56
57
+ await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
58
+ return route . fulfill ( {
59
+ status : 200 ,
60
+ contentType : 'application/json' ,
61
+ body : JSON . stringify ( { id : 'test-id' } ) ,
62
+ } ) ;
63
+ } ) ;
64
+
57
65
const url = await getLocalTestPath ( { testDir : __dirname } ) ;
58
66
await page . goto ( url ) ;
59
67
60
- await page . evaluate ( ( ) => {
61
- void ( window as unknown as TestWindow ) . Replay . stop ( ) ;
68
+ await page . evaluate ( async ( ) => {
69
+ await ( window as unknown as TestWindow ) . Replay . stop ( ) ;
62
70
63
71
( window as unknown as TestWindow ) . Sentry . configureScope ( scope => {
64
72
scope . setUser ( { id : 'user123' , segment : 'segmentB' } ) ;
You can’t perform that action at this time.
0 commit comments