commit 43f7758c6a51988ad900a2616ef30fb9edab9bed
parent 83caf7e451ab4c6061d125ccdacf6e9a282346f9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 04:02:08 -0500
umtool e2e: long-reads' progress-bar-in-Play test reads the post's second and its fill at ONE instant (one evaluate) -- it read them in two calls, so under load each sample paired a fill with a later second and the step check (0.03 of the read) failed at 0.031-0.032 (whole runs 2 and 4, alone under load). The spec's measurement was wrong, not the bar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/umtool/e2e/long-reads.spec.ts b/umtool/e2e/long-reads.spec.ts
@@ -174,8 +174,8 @@ test("THE PROGRESS BAR in Play, with the read re-timed: it fills over the new re
const seen: Array<[number, number]> = [];
await expect
.poll(async () => {
- const s = Number(await player.getAttribute("data-post-s"));
- const f = Number(await player.getAttribute("data-post-progress"));
+ // Both read at one instant (one evaluate): two reads a load apart are two clocks' worth of drift.
+ const [s, f] = await player.evaluate((el) => [Number(el.getAttribute("data-post-s")), Number(el.getAttribute("data-post-progress"))]);
seen.push([s, f]);
return f;
}, { timeout: 20_000, intervals: [150] })