From 1f265a027051c56592f0520b03ad68e110d40636 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Thu, 11 Dec 2025 17:30:17 +0100 Subject: [PATCH] update changelog for 0.0.17 CDP tests and test refactoring --- playwriter/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playwriter/CHANGELOG.md b/playwriter/CHANGELOG.md index 949168f..4513446 100644 --- a/playwriter/CHANGELOG.md +++ b/playwriter/CHANGELOG.md @@ -5,6 +5,13 @@ ### Patch Changes - **Improved error debugging**: Log file path now included in error messages and tool description. Log file writes to OS temp directory by default (`PLAYWRITER_LOG_PATH` env var to override) +- **Added CDP Session tests**: New test suite for direct CDP usage via `page.context().newCDPSession(page)` + - Debugger test: pauses on `debugger` statement, captures stack trace, local variables, and evaluates expressions + - Profiler test: profiles JavaScript execution with inline snapshot of function names + - Performance metrics test: captures metrics like Documents, Nodes, JSHeapUsedSize +- **Refactored test setup**: Extracted `setupTestContext()` and `cleanupTestContext()` to deduplicate beforeAll/afterAll code +- **Improved `getExtensionServiceWorker`**: Now waits for extension global functions to be ready before returning +- **Better TypeScript types**: Uses `Protocol.Debugger.PausedEvent`, `Protocol.Profiler.Profile`, `Protocol.Performance.Metric` instead of `any` ## 0.0.16