Skip to content

Chrome DevTools for coding agents

test: unskip webmcp test now that Chrome 149 is stable (#2472)

Alex Rudenko1efe0b3fd63f
diff --git a/tests/tools/webmcp.test.ts b/tests/tools/webmcp.test.ts
index 9087bffc..2e34ff4d 100644
--- a/tests/tools/webmcp.test.ts
+++ b/tests/tools/webmcp.test.ts
@@ -61,13 +61,18 @@ describe('webmcp', () => {
);
}
- // TODO: Remove `.skip` once Chrome 149 reaches stable channel.
- it.skip('executes a tool successfully', async () => {
+ it('executes a tool successfully', async () => {
await withMcpContext(
async (response, context) => {
const page = context.getSelectedMcpPage();
+ const toolsAddedPromise = new Promise(resolve => {
+ page.pptrPage.webmcp.once('toolsadded', resolve);
+ });
await setupWebMcpTool(page);
+ // Wait for WebMCP tools to be registered and detected by Puppeteer
+ await toolsAddedPromise;
+
await executeWebMcpTool.handler(
{params: {toolName: 'test_tool', input: JSON.stringify({})}, page},
response,