You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_a_refused_position_reconciles_the_logged_order_of_sibling_units fails on main since #5468 let a key go of unseen focus #5646
Since #5468 (b5f5c5d43, "Let a key go of focus the user can't see, and read where they are by one rule"), tests/browser/test_render_outbox.py::test_a_refused_position_reconciles_the_logged_order_of_sibling_units fails on main. The test never sends the event it waits for:
with page.expect_request("**/api/event"): # test_render_outbox.py:1289
page.locator("#card-heater .lf-grip").focus()
for key in ["Enter", "ArrowRight", "Enter"]: page.keyboard.press(key)
TimeoutError: Timeout 120000ms exceeded while waiting for event "request"
git bisect run over b3c9842e8..fead36fb9 landed on b5f5c5d43: it fails there and passes at 642d98105. It still fails on main 903e1d106. The first failing push run is 42029761182 at 6cd5093f3, and it still fails in 42320062138.
Under #5468, a key pressed while the focused place is off screen first lets go of it (letGo in keyboard/controller.js, deciding by focusPlace in user-place.js). The test focuses #card-heater's grip from script and then presses Enter, ArrowRight and Enter. If that grip isn't in view, as #5468 defines it, the Enter now lets go instead of grabbing, so the move is never sent. The test should probably bring the grip into view first, since #5468 accepted this behavior. Check whether the grip is actually on screen in this fixture before choosing between the test and the rule.
#5667 fixes this in the test. The grip is on screen when the test focuses it. The letting go happens at the final Enter: ArrowRight shrinks the board, and the test's HOLD_MOTION keeps the card's slide paused at its first frame, which leaves the grip outside the board's clip. carried deliberately ignores a paused motion, so focus counts as unseen. The test now plays the held slide very slowly before the drop, so Enter lands mid-slide, as it would for a real user, and #5468's rule stays as it is. The test reproduced the timeout on main and passes with the change; CI on #5667 is pending.
Activity
leaf-agent commentedon Nov 7, 2026
#5667 fixes this in the test. The grip is on screen when the test focuses it. The letting go happens at the final Enter: ArrowRight shrinks the board, and the test's
HOLD_MOTIONkeeps the card's slide paused at its first frame, which leaves the grip outside the board's clip.carrieddeliberately ignores a paused motion, so focus counts as unseen. The test now plays the held slide very slowly before the drop, so Enter lands mid-slide, as it would for a real user, and #5468's rule stays as it is. The test reproduced the timeout on main and passes with the change; CI on #5667 is pending.