Skip to content

Commit 13a0afc

Browse files
committed
Update imports from playwright-mcp after recent renames
1 parent 5d63649 commit 13a0afc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/extension/extensionTest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ export const extensionTest = baseTest.extend<TraceViewerFixtures>(traceViewerFix
4545
],
4646
channel: 'chromium',
4747
});
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);
5050
const origin = `ws://localhost:${(httpServer.address() as AddressInfo).port}`;
5151
await expect.poll(() => context?.serviceWorkers()).toHaveLength(1);
5252
await context.pages()[0].goto(new URL('/popup.html', context.serviceWorkers()[0].url()).toString());
5353
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`);
5555
await context.pages()[0].getByRole('button', { name: 'Share This Tab' }).click();
5656
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`);
5858
context.on('dialog', dialog => {
5959
// Make sure the dialog is not dismissed automatically.
6060
});

0 commit comments

Comments
 (0)