mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Restore the conditions eight converted QA scripts were waiting for
The harness conversion replaced pauses that stood in for real conditions with camera readiness: the cables and infrastructure idle checks started measuring while the overlay was still fading in after moveEnd, directions sampled before its maneuver dots had ground cells, three scripts clicked before the loading cover was gone, the credits check hit-tested during UI transitions, and the oblique traffic flight lost its height cap. Each now waits for its condition; idle checks observe without requesting frames and record the reasons of the frames they count; readiness waits for the startup cover and no longer requests frames while polling.
This commit is contained in:
1 parent
2c62e1e378
commit
b5cc4feacb
11 files changed
+480
-51
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
// Cesium-only probes: native primitive inspection independently verifies the Cesium route geometry.
|
||||
import { evaluateWithGeo } from './qa/geometry.mjs';
|
||||
import { whenSettled, whenUiSettled, whenTilesLoaded } from './qa/ready.mjs';
|
||||
import { whenSettled, whenUiSettled, pollPage } from './qa/ready.mjs';
|
||||
/**
|
||||
* Browser proof of the Directions layer: real chip clicks, real globe clicks,
|
||||
* a real route from the real proxy, a real camera flight.
|
||||
@@ -779,7 +779,14 @@ try {
|
||||
if (placed) {
|
||||
await waitForRoute();
|
||||
// Let the shared ground-floor cells warm and the dots re-anchor.
|
||||
await whenTilesLoaded(page);
|
||||
await pollPage(
|
||||
page,
|
||||
() => {
|
||||
const { stepCount, stepsShown } = window.__gevQaDirections.drawn();
|
||||
return stepCount > 0 && stepsShown.length === stepCount;
|
||||
},
|
||||
{ timeoutMs: 60_000 },
|
||||
);
|
||||
const denver = await evaluateWithGeo(page, async (qaGeo) => {
|
||||
const Cartographic = qaGeo.cartographic;
|
||||
const { stepCount, stepsShown } = window.__gevQaDirections.drawn();
|
||||
|
||||
Reference in new issue
Block a user