From 0431dbb05edc83d68b4b8dc25333039534ba41a1 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 13 Sep 2026 02:03:18 -0700 Subject: [PATCH] test: preserve the layout pass in the synthetic Cockpit fixture --- scripts/qa-radio.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/qa-radio.mjs b/scripts/qa-radio.mjs index 4c9edcd86..40f34240f 100644 --- a/scripts/qa-radio.mjs +++ b/scripts/qa-radio.mjs @@ -2031,6 +2031,10 @@ async function main() { }; const waitForHudSettle = async () => { await new Promise((resolve) => setTimeout(resolve, 560)); + // The synthetic shell below stops the aircraft/context update loop. + // Restore its layout pass after the HUD fade before measuring geometry; + // qa-cockpit-utility exercises scheduling with the real controller. + manager.cockpitView.scheduleContextLayout(); await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve))); }; const prior = {