mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 00:02:25 +00:00
Wait for the application, not the clock, in the strict QA set
The probe exposes settled() and the first-frame outcome; scripts/qa/ready.mjs waits for drawn frames with the camera at rest and for a pick at the click position, with a deadline and its reason in the error. The strict scenarios use these instead of fixed pauses and loading-screen polling, and the hidden-switch scenario checks how the loading screen was lifted instead of how long it took. Each switch scenario now records a draw ledger per engine and runs a contract monitor; both write to the scenario's evidence file only, with an empty allowlist until browser runs show what differs on purpose.
This commit is contained in:
1 parent
9c2a2d6951
commit
60f9de8511
47 files changed
+1788
-312
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { whenSettled } from './qa/ready.mjs';
|
||||
// Contract: the production build starts cold on each engine without a page
|
||||
// error. A fresh page per engine opens the keyless preview of `vite build`
|
||||
// (its hashed entry chunk, not the dev server), waits until the engine runs
|
||||
@@ -47,11 +48,13 @@ await strict.run({}, async (b) => {
|
||||
);
|
||||
}
|
||||
// Late work after the start: idle prefetch, layer timers, workers.
|
||||
await new Promise((resolve) => setTimeout(resolve, 4000));
|
||||
await page.waitForNetworkIdle({ idleTime: 500, timeout: 30000 });
|
||||
await whenSettled(page);
|
||||
const other = start === 'cesium' ? 'navara' : 'cesium';
|
||||
await strict.pick(page, other);
|
||||
await waitForEngine(page, other, { timeout: 90000 });
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
await page.waitForNetworkIdle({ idleTime: 500, timeout: 30000 });
|
||||
await whenSettled(page);
|
||||
const row = { start, switchedTo: other, entry: entry.scripts, errors };
|
||||
results.push(row);
|
||||
console.log(errors.length ? 'FAIL' : 'PASS', JSON.stringify(row));
|
||||
|
||||
Reference in new issue
Block a user