Repository navigation
fix: select the suggestion's own fold in test_a_decided_change_folds_away_rather_than_vanishing - #5828
Merged
Conversation
…away_rather_than_vanishing #5771 made the panel's leaf twirl when On Me empties, and accepting the page's only suggestion empties it, so the press now plays two held motions: the slot's fold and the leaf's gesture. The test read every held motion as the fold. It now reads the held motions whose target is inside #sug; what it asserts of the fold (its start, midpoint, filled endpoint and undo) is unchanged. Closes #5825
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.
#5771 made the panel's leaf twirl when On Me empties (its gesture table: "On Me empties → twirl"). Accepting the only suggestion on
SHORT_SUGGESTIONempties On Me, so the press now plays two motions thatHOLD_MOTIONholds: the slot's 220 ms fold onlf-oldand the leaf's 420 ms twirl on itssvg. The test treated every held motion as the fold, so its first check failed in both engines on every push run on main sincee74d07dd5. The twirl is what #5771 intended, so this changes the test, not the runtime. The test now selects the held motions whose target is inside#sugand runs every later fold check against that list. Nothing it asserts about the fold changed: where the fold starts, its midpoint, its filled endpoint, the room given back, and undo during a second fold.The issue reported that once the list was filtered, the fold's midpoint still left
lf-oldat full height. That doesn't happen here. With the leaf's gesture held at the same time, setting the fold to half its duration takeslf-oldfrom 31.19px to 6.14px in Chromium. The test as changed passes three runs out of three in Chromium and Firefox (Playwright 1.65) and fails on main with the original['lf-old', 'svg'] == ['lf-old']assertion.Closes #5825 — automated triage