mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-26 16:42:27 +08:00
Revert "fix test"
This reverts commit ab696c2b1089de0af24e774a933595a78adf357a.
This commit is contained in:
parent
ab696c2b10
commit
6c98594b7a
@ -138,16 +138,10 @@ test('navigating to download link emits download', async ({ startClient, server,
|
|||||||
res.end('Hello world!');
|
res.end('Hello world!');
|
||||||
});
|
});
|
||||||
|
|
||||||
const navigateResponse = await client.callTool({
|
expect(await client.callTool({
|
||||||
name: 'browser_navigate',
|
name: 'browser_navigate',
|
||||||
arguments: {
|
arguments: {
|
||||||
url: server.PREFIX + 'download',
|
url: server.PREFIX + 'download',
|
||||||
},
|
},
|
||||||
});
|
})).toContainTextContent('### Downloads');
|
||||||
if (process.platform === 'win32') {
|
|
||||||
// windows is racy, downloads might arrive after the snapshot
|
|
||||||
await expect.poll(() => client.callTool({ name: 'browser_snapshot' })).toContainTextContent('### Downloads');
|
|
||||||
} else {
|
|
||||||
expect(navigateResponse).toContainTextContent('### Downloads');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user