mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
test(radio): settle both lanes in the paused Cockpit fixture
This commit is contained in:
1 parent
3b1e75171a
commit
1180274081
1 file changed
+5
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user