Skip to content

test_a_refused_position_reconciles_the_logged_order_of_sibling_units fails on main since #5468 let a key go of unseen focus #5646

Closed

Description

@leaf-agent

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.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 7, 2026
  2. leaf-agent commented on Nov 7, 2026

    @leaf-agent
    CollaboratorAuthor

    #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions