Skip to content

test: let the refused card move's slide run when its drop key is pressed - #5667

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5646
Nov 7, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5646

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_refused_position_reconciles_the_logged_order_of_sibling_units has failed on main since #5468. Under #5468 a key lets go of focus the user can't see, and a motion counts as carrying the user to focus only while it is running (user-place.js, carried). The test holds every gesture animation paused at its first frame (HOLD_MOTION). After ArrowRight moves the heater card to Done, the board shrinks (its bottom moves from 271 to 217 px), while the paused slide keeps the card's grip at 219 to 247 px, outside the board's clip. So focusPlace returns null, and the dropping Enter lets go of the grip instead of sending the move. The test then times out waiting for /api/event.

The grip is on screen when the test focuses it and when it presses the first Enter. The off-screen state comes only from the paused frame: a real slide is either running when the user presses Enter, so carried holds focus, or already finished with the card in view. So the repair goes in the test, and #5468's rule stays. Before the drop, the test now plays the held slide at a playback rate of 1e-6, so Enter lands mid-slide as a user's would and the slide is still running when the refusal cancels it. The test's positive control, which checks that the heater card's animation was cancelled, still holds.

The test fails on main at 1ccf6cc04 (the 120 s timeout from the report) and passes four times in a row with this change. No product code changes.

Closes #5646 — automated triage

Since #5468 a key lets go of focus the user can't see, and a motion counts
as carrying them to focus only while it runs (user-place.js, `carried`).
The test held the heater card's slide paused at its first frame; once
ArrowRight moved the card to Done, the board shrank above that frozen
frame, so the grip stood outside the board's clip and the dropping Enter
let go instead of sending the move. The slide now runs, too slowly to end
before the refusal, so the drop is pressed mid-slide as a user's would be
and the cancelled animation stays the test's positive control. No product
behavior changes.

Closes #5646
@leaf-agent
leaf-agent merged commit a54c1bc into main Nov 7, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5646 branch November 7, 2026 15:00
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.

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

1 participant