@@ -31,7 +31,6 @@ const getAsset = (assetDir: string, asset: string): string => {
31
31
export type TestFixtures = {
32
32
_autoSnapshotSuffix : void ;
33
33
testDir : string ;
34
- getLocalTestPath : ( options : { testDir : string ; skipDsnRouteHandler ?: boolean } ) => Promise < string > ;
35
34
getLocalTestUrl : ( options : {
36
35
testDir : string ;
37
36
skipRouteHandler ?: boolean ;
@@ -109,27 +108,6 @@ const sentryTest = base.extend<TestFixtures>({
109
108
return pagePath ;
110
109
} ) ;
111
110
} ,
112
-
113
- getLocalTestPath : ( { page } , use ) => {
114
- return use ( async ( { testDir, skipDsnRouteHandler } ) => {
115
- const tmpDir = path . join ( testDir , 'dist' , crypto . randomUUID ( ) ) ;
116
- const pagePath = `file:///${ path . resolve ( tmpDir , './index.html' ) } ` ;
117
-
118
- await build ( testDir , tmpDir ) ;
119
-
120
- if ( ! skipDsnRouteHandler ) {
121
- await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
122
- return route . fulfill ( {
123
- status : 200 ,
124
- contentType : 'application/json' ,
125
- body : JSON . stringify ( { id : 'test-id' } ) ,
126
- } ) ;
127
- } ) ;
128
- }
129
-
130
- return pagePath ;
131
- } ) ;
132
- } ,
133
111
runInChromium : ( { runInSingleBrowser } , use ) => {
134
112
return use ( ( fn , args ) => runInSingleBrowser ( 'chromium' , fn , args ) ) ;
135
113
} ,
0 commit comments