add browser console log capture and fix test contamination

- Add getLatestLogs function to capture and retrieve browser console logs
- Support filtering by page, search string/regex, and count limit
- Add clearAllLogs function to prevent log persistence across tests
- Make console listeners synchronous using page _guid for immediate capture
- Add critical test verifying extension reconnection after disconnectEverything
- Preserve console logs across browser reconnections for stability
This commit is contained in:
Tommy D. Rossi
2025-11-24 15:30:23 +01:00
parent bd7ed3ac6e
commit 4ebfdaab36
4 changed files with 157 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"watch": "pnpm -r watch",
"build": "pnpm -r build",
"agents.md": "agentsdotmd ./PLAYWRITER_AGENTS.md core.md typescript.md pnpm.md vitest.md changelog.md docs-writing.md github.md playwright.md zod.md gitchamber.md",
"release": "pnpm build && changeset"
"release": "pnpm build && "
},
"devDependencies": {
"@changesets/cli": "^2.29.7",