mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +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: rapid switches. Back-to-back picks with real input, a second
|
||||
// pointer click on the picker while it is busy, a history visit superseded
|
||||
// by the opposite visit before its engine is ready, and a pick superseded by
|
||||
@@ -115,7 +116,7 @@ await strict.run({}, async (b) => {
|
||||
history.back();
|
||||
});
|
||||
await waitForEngine(p, 'navara');
|
||||
await new Promise((resolve) => setTimeout(resolve, 1500));
|
||||
await whenSettled(p);
|
||||
await assertSession(p, 'navara', 'Forward supersedes Back');
|
||||
const visited = await sessionState(p);
|
||||
const shown = await engines();
|
||||
@@ -145,7 +146,7 @@ await strict.run({}, async (b) => {
|
||||
});
|
||||
await strict.pick(p, 'cesium', { settle: false });
|
||||
await waitForEngine(p, 'cesium', { timeout: 30000 });
|
||||
await new Promise((resolve) => setTimeout(resolve, 1500));
|
||||
await whenSettled(p);
|
||||
await assertSession(p, 'cesium', 'Back supersedes the pick');
|
||||
const after = await sessionState(p);
|
||||
const backShown = await engines();
|
||||
|
||||
Reference in new issue
Block a user