File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ export const extensionTest = baseTest.extend<TraceViewerFixtures>(traceViewerFix
45
45
] ,
46
46
channel : 'chromium' ,
47
47
} ) ;
48
- const { CDPBridgeServer } = await import ( '../../../playwright-mcp/src/cdp-relay .ts' ) ;
49
- const server = new CDPBridgeServer ( httpServer ) ;
48
+ const { CDPRelayServer } = await import ( '../../../playwright-mcp/src/cdpRelay .ts' ) ;
49
+ new CDPRelayServer ( httpServer ) ;
50
50
const origin = `ws://localhost:${ ( httpServer . address ( ) as AddressInfo ) . port } ` ;
51
51
await expect . poll ( ( ) => context ?. serviceWorkers ( ) ) . toHaveLength ( 1 ) ;
52
52
await context . pages ( ) [ 0 ] . goto ( new URL ( '/popup.html' , context . serviceWorkers ( ) [ 0 ] . url ( ) ) . toString ( ) ) ;
53
53
await context . pages ( ) [ 0 ] . getByRole ( 'textbox' , { name : 'Bridge Server URL:' } ) . clear ( ) ;
54
- await context . pages ( ) [ 0 ] . getByRole ( 'textbox' , { name : 'Bridge Server URL:' } ) . fill ( `${ origin } ${ server . EXTENSION_PATH } ` ) ;
54
+ await context . pages ( ) [ 0 ] . getByRole ( 'textbox' , { name : 'Bridge Server URL:' } ) . fill ( `${ origin } /extension ` ) ;
55
55
await context . pages ( ) [ 0 ] . getByRole ( 'button' , { name : 'Share This Tab' } ) . click ( ) ;
56
56
await context . pages ( ) [ 0 ] . goto ( 'about:blank' ) ;
57
- const browser = await playwright . chromium . connectOverCDP ( `${ origin } ${ server . CDP_PATH } ` ) ;
57
+ const browser = await playwright . chromium . connectOverCDP ( `${ origin } /cdp ` ) ;
58
58
context . on ( 'dialog' , dialog => {
59
59
// Make sure the dialog is not dismissed automatically.
60
60
} ) ;
You can’t perform that action at this time.
0 commit comments