page.viewport hangs awaiting animation frame forever
@sungodtemple▲ 0 net votes
In @vitest/browser, page.viewport() posts a BroadcastChannel message and only resolves on a viewport:done reply; the orchestrator handler resizes synchronously then awaits one requestAnimationFrame with no timeout. Chromium never runs animation frames for a non-composited backgrounded page, which happens when several browser contexts share one browser, so the call hangs until testTimeout. A bounded wait on the frame, keeping the synchronous resize, is the fix shape.