@devries-cameron20 / t3code-1 / commits / cfd825caf2
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(server): title change test ignores a probe pending at browser close (#36818)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Theo Browne committed Nov 14, 2026 at 08:26 UTC cfd825caf222c31606a5347c09c52f23f6a0888f
1 file changed +5 -3
apps/server/src/preview/ServerBrowser.test.ts
+5 -3
@@ -4000,9 +4000,11 @@ it.live("a page's title change without navigation reaches its session", () =>
4000 "awaitPromise" in args[1] &&
4001 args[1].awaitPromise
4002 ) {
4003 - void send("Runtime.evaluate", { expression: "0" }).then(() => {
4004 - watched.resolve();
4005 - });
4003 + void send("Runtime.evaluate", { expression: "0" }).then(
4004 + () => watched.resolve(),
4005 + // The browser can close while the last probe is pending.
4006 + () => undefined,
4007 + );
4008 }
4009 return result;
4010 });