fix(preview): report navigation timeout accurately#24356

merged8
main
GitHub fork: fix/preview-timeout-diagnostic
opened2d agobyEEthereal49
View on GitHubTwo-way sync enabledPR last imported 1d ago
0 / 4 viewed4 files changedLine totals unavailable

apps/server/src/preview/ServerBrowser.test.ts · Earlier revision a135e59d · right 386

Original diff
@@ -379,6 +379,38 @@ beforeEach(() => {
   desktopConnections.length = 0;
 });
 
+it.live("preview_open reports its navigation timeout instead of the request budget", () =>
+  Effect.scoped(
+    Effect.gen(function* () {
+      const broker = yield* Broker.PreviewAutomationBroker;
+      yield* Effect.yieldNow;