Skip to content

Commit d8a3db2

Browse files
Refine settle trace regression log capture
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent fea2b4e commit d8a3db2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

currentState.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ HyperAgent exposes a TypeScript SDK for browser automation with three primary pa
150150
- Hardened wait-listener lifecycle cleanup against trap-prone session listener-method getters, preserving settle completion while emitting sanitized detach diagnostics.
151151
- Expanded settle-flow listener regressions to cover trap-prone `session.on` getters, ensuring timeout-based fallback remains deterministic under unreadable listener APIs.
152152
- Aligned settle network-tracing behavior so recording-video sessions now propagate trace mode into network-idle diagnostics (including stalled-request warnings) even when debug flags are off.
153+
- Expanded settle trace regressions with cleaner log-capture coverage to ensure recording-video trace diagnostics remain validated without noisy test output.
153154
- Hardened constructor LLM validation to reject malformed non-provider/non-client `llm` payloads instead of accepting invalid runtime objects, while preserving trap-safe config reads.
154155
- Added explicit constructor regression coverage for malformed partial `llm` objects to lock in fail-fast configuration behavior.
155156
- Hardened prompt final-goal rendering against malformed/trap-prone task inputs by normalizing non-string goals into bounded readable diagnostics instead of throwing.

src/utils/waitForSettledDOM.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ describe("waitForSettledDOM diagnostics", () => {
254254

255255
it("enables network trace diagnostics when context is recording video", async () => {
256256
const warnSpy = jest.spyOn(console, "warn").mockImplementation(() => {});
257+
const logSpy = jest.spyOn(console, "log").mockImplementation(() => {});
257258
const { session, emit } = createSessionWithEvents();
258259
const cdpClient: CDPClient = {
259260
rootSession: session,
@@ -302,6 +303,7 @@ describe("waitForSettledDOM diagnostics", () => {
302303
).toBe(true);
303304
} finally {
304305
warnSpy.mockRestore();
306+
logSpy.mockRestore();
305307
}
306308
});
307309

0 commit comments

Comments
 (0)