console: the claim UX test allows 10 ms of timer slack on a stage hold
TestDemoClaimUXHeadlessFast1280 failed on CI with a stage held 648.5 ms against a 649 ms floor. The page holds each stage 650 ms with setTimeout, and Chromium's timers and its coarsened performance.now() disagree by a millisecond or two on a loaded worker. 640 ms still fails a page that skipped or noticeably shortened its hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−4
internal/console/testdata/demo_claim_browser.mjs+6 −4
CI passed — run details
diff --git a/internal/console/testdata/demo_claim_browser.mjs b/internal/console/testdata/demo_claim_browser.mjs| index da87de325..aa7aeba68 100644 |
| --- a/internal/console/testdata/demo_claim_browser.mjs |
| +++ b/internal/console/testdata/demo_claim_browser.mjs |
| @@ -7,10 +7,12 @@ import {checkClaimMotion} from './demo_claim_motion.mjs'; |
| // The page holds each stage, and a working button, for 650 ms by its own |
| // timers. Chromium runs timers in whole milliseconds and coarsens |
| // performance.now() (about 0.1 ms, with jitter), so a hold the page kept |
| -// can measure a fraction under 650 here: 649.8 ms on CI, 2026-11-11. One |
| -// millisecond of slack absorbs that; a page that skipped its hold would |
| -// still come up hundreds of milliseconds short. |
| -const heldAtLeast = 649; |
| +// can measure a little under 650 here: 649.8 ms on CI, and 648.5 ms on a |
| +// loaded CI worker later the same day (2026-11-11, #897). Ten milliseconds |
| +// of slack absorbs that. A page that skipped its hold would still come up |
| +// hundreds of milliseconds short, and one that shortened it noticeably |
| +// still fails. |
| +const heldAtLeast = 640; |
| const [binary, profile, target, screenshots, expectedError] = process.argv.slice(2); |
| const chrome = spawn(binary, ['--headless', '--no-sandbox', '--disable-gpu', |