Repository navigation
test: let the refused card move's slide run when its drop key is pressed - #5667
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_a_refused_position_reconciles_the_logged_order_of_sibling_unitshas 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. SofocusPlacereturns 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
carriedholds 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