File tree Expand file tree Collapse file tree
tests/tools/fixtures/extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ interface McpLaunchOptions {
145145 chromeArgs ?: string [ ] ;
146146 ignoreDefaultChromeArgs ?: string [ ] ;
147147 devtools : boolean ;
148+ enableExtensions ?: boolean ;
148149}
149150
150151export async function launch ( options : McpLaunchOptions ) : Promise < Browser > {
@@ -201,7 +202,7 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
201202 ignoreDefaultArgs : ignoreDefaultArgs ,
202203 acceptInsecureCerts : options . acceptInsecureCerts ,
203204 handleDevToolsAsPage : true ,
204- enableExtensions : true ,
205+ enableExtensions : options . enableExtensions ,
205206 } ) ;
206207 if ( options . logFile ) {
207208 // FIXME: we are probably subscribing too late to catch startup logs. We
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ async function getContext(): Promise<McpContext> {
9191 ignoreDefaultChromeArgs,
9292 acceptInsecureCerts : args . acceptInsecureCerts ,
9393 devtools,
94+ enableExtensions : args . categoryExtensions ,
9495 } ) ;
9596
9697 if ( context ?. browser !== browser ) {
Original file line number Diff line number Diff line change 11<!doctype html>
2- < html
3- > < body
4- > < h1 > Test Popup</ h1 > </ body
5- > </ html
6- >
2+ < html >
3+ < body >
4+ < h1 > Test Popup</ h1 >
5+ </ body >
6+ </ html >
You can’t perform that action at this time.
0 commit comments