Skip to content

Advance traffic deadline test past the served wait limit - #2440

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38159211604-traffic-deadline
Oct 11, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38159211604-traffic-deadline

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The traffic deadline test still advances its fake clock to 31 seconds after the served wait limit rose from 30 to 120 seconds. The wait therefore correctly listens for another paint, but the test expects it to expire. Deriving the fake expiration from SERVED_TIMEOUT_MS restores the test's intended check and keeps it valid if that limit changes again.

This failure occurred in PR #2435's test job and reproduces on current main. uv run pytest -q tests/test_chrome_contracts.py::test_a_traffic_wait_stops_when_repaints_outlive_its_deadline failed before the change and passes after it.

The fake clock in the deadline test still stopped at 31 seconds after the served wait bound rose to 120 seconds. Derive the expired reading from the shared timeout so the test proves that an endlessly repainted false fact ends at its declared deadline.
@leaf-agent
leaf-agent merged commit 87086fb into main Oct 11, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38159211604-traffic-deadline branch October 11, 2026 23:19
leaf-agent added a commit that referenced this pull request Oct 12, 2026
After #2375 made Leaf's focus ring follow the logical input destination
across pointer and keyboard arrivals, tests in [main CI run
38159211604](https://github.com/max-sixty/leaf/actions/runs/38159211604)
still treated pointer-returned focus as absent. Sending a reaction
returns focus to its target, releasing a held diff header leaves focus
on that header, and a mouse drag leaves the focused resize handle in
place. The tests check each focus-owned outline or path reveal while
focus stands there, then verify what disappears when focus leaves. The
handle case also checks that pointer input clears Chromium's native
`:focus-visible` while Leaf's retained focus ring remains.

Verification: `uv run pytest -q
tests/test_render_gate.py::test_dragging_an_edge_preserves_user_state`
(3 passed); the reaction and diff-path cases passed locally after their
assertion changes. The branch also includes the served-wait deadline
test alignment in #2440, which is being checked separately.

---------

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant