test(radio): settle both lanes in the paused Cockpit fixture

This commit is contained in:
Sameh Khamis committed 2026-09-13 17:28:35 -07:00
1 parent 3b1e75171a
commit 1180274081
1 file changed
+5
+5
View File
@@ -2036,6 +2036,11 @@ async function main() {
// qa-cockpit-utility exercises scheduling with the real controller.
manager.cockpitView.scheduleContextLayout();
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
// The paused synthetic controller also needs the accordion pass after
// the Context/HUD obstacle rectangles have settled. Measuring the old
// corridor here races the left lane against the newly visible card.
manager._syncLeftPanelAdaptiveLayout();
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
};
const prior = {
cockpit: document.body.classList.contains('cockpit-mode'),