chore: include recent console logs in results (#689)

This commit is contained in:
Pavel Feldman
2025-07-17 14:58:44 -07:00
committed by GitHub
parent c97bc6e2ae
commit 5bfff0a059
9 changed files with 103 additions and 51 deletions

View File

@@ -46,14 +46,15 @@ test('cdp server reuse tab', async ({ cdpServer, startClient, server }) => {
expect(await client.callTool({
name: 'browser_snapshot',
})).toHaveTextContent(`
- Ran Playwright code:
### Ran Playwright code
\`\`\`js
// <internal code to capture accessibility snapshot>
\`\`\`
### Page state
- Page URL: ${server.HELLO_WORLD}
- Page Title: Title
- Page Snapshot
- Page Snapshot:
\`\`\`yaml
- generic [active] [ref=e1]: Hello, world!
\`\`\`