Commit 6865624
committed
fix(web): pin the floor test's clock so its elapsed assertion stops expiring
The TeamFloor island test built its model at a fixed now but rendered without the now prop, so the stage ticked on the real Date.now() instead. The bubble reads through ago(), which switches from "Ns" to "Nm" at sixty seconds, so getByText(/^T2 · \d+s$/) only held during the minute after the pinned event time.
That is why the same tree was green on the PR at 09:38 — a negative elapsed clamped to 0s — and red on main at 10:10, where it rendered "T2 · 10m". It took down both the Lint & Test and Pre-commit jobs, and would fail every run from here.
Pass the render the same pinned clock the model was built with, as the other fourteen tests in the file already do.1 parent 1fec851 commit 6865624
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments