make test pass

This commit is contained in:
Simon Knott
2025-08-20 18:44:45 +02:00
parent 21e03968c5
commit 922002e435
2 changed files with 10 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ import { test, expect } from './fixtures.js';
test('browser_connect(vscode) works', async ({ startClient, playwright, browserName }) => {
const { client } = await startClient({
args: ['--connect-tool'],
args: ['--vscode'],
});
const server = await playwright[browserName].launchServer();
@@ -26,14 +26,11 @@ test('browser_connect(vscode) works', async ({ startClient, playwright, browserN
expect(await client.callTool({
name: 'browser_connect',
arguments: {
name: 'vscode',
options: {
connectionString: server.wsEndpoint(),
lib: new URL('./index.js', import.meta.resolve('playwright')).pathname,
}
connectionString: server.wsEndpoint(),
lib: new URL('./index.js', import.meta.resolve('playwright')).pathname,
}
})).toHaveResponse({
result: 'Successfully changed connection method.'
result: 'Successfully connected.'
});
expect(await client.callTool({