test: preserve the layout pass in the synthetic Cockpit fixture

This commit is contained in:
Sameh Khamis committed 2026-09-13 02:03:18 -07:00
1 parent b1e67a6a50
commit 0431dbb05e
1 file changed
+4
+4
View File
@@ -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 = {