Let readiness waits know when the app owns the camera

While the cockpit holds camera inputs or the camera follows a target,
whenSettled no longer waits for enabled inputs or a still pose; it still
waits for the engine, the restored view, drawn frames and no flight, and
its timeout now prints what it saw (inputs, following, cockpit, last pose
change). Scenarios that waited for the camera where they needed the
picture wait for it instead: weather and Nepal imagery for their tiles
and frames, imagery capture while a box drag holds inputs, and pixel and
pick polling for drawn frames. The vessel click retries at the vessel's
rendered position.
This commit is contained in:
German Khokhlov committed 2026-11-10 18:31:45 +04:00
1 parent 417890b862
commit b73fe82e27
11 files changed
+291 -42

No files matched your search

+5 -2
View File
@@ -1,4 +1,4 @@
import { whenSettled } from './qa/ready.mjs';
import { whenFramesDrawn, whenSettled, whenTilesLoaded } from './qa/ready.mjs';
// Recent imagery on a keyless preview, starting on Navara: the NASA catalog
// and imagery tiles are fixtures, and the image, A/B, swap, divider, opacity,
// basemap, toggle, failure, box-drag and zoom-to-fit checks read the rendered
@@ -206,7 +206,10 @@ try {
await whenSettled(page);
const capture = async (name) => {
await page.evaluate(() => window.__godsEyeView.requestRender('imagery-qa'));
await whenSettled(page);
// The box tool holds inputs until mouseup; this capture only needs its drawing.
await whenFramesDrawn(page);
await whenTilesLoaded(page, { timeoutMs: 90000 });
await whenFramesDrawn(page);
const buffer = await page.screenshot();
await fs.writeFile(output.replace(/\.json$/, `-${name}.png`), buffer);
const pixels = await sharp(buffer)