Repository navigation
test: expect m to step on from On me's key-selected first row - #5198
Merged
Merged
Conversation
Since #5039, opening On me by a key selects its first row. A selected On card stands on its obligation, so the next `m` steps on to the second obligation instead of landing on the first. Two tests still expected the first; they now expect the second, and the suggestion test reaches its suggestion with `m` then `Shift+m`. The obligation-walk test's comment, "Opening On me from there holds no other place", described the old start; its assertion now passes because stepping off question 1 lands on question 2, and the comment says that. Behavior changed in the tests: `g M` then `m` lands on On me's second item. Closes #5152
This was referenced Nov 3, 2026
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.
Two On me tests failed on main because #5039 changed where opening On me by a key puts focus. Since #5039,
gthenShift+Mfrom the page selects On me's first row, so a ring shows where Enter will go. A selected On card counts as standing on its obligation (declareSideinfloating-panel.js). A walk steps off the stop the user is on (current-target.js). So the nextmnow lands on the second obligation, not the first. A bisect overcc5df725e..72afa89ecwith a focused probe found #5039 as the first bad commit.This PR keeps #5039's behaviour and updates the tests that expected the old start:
test_m_lands_what_it_reaches_above_the_open_on_me_view(On me navigation leaves the reached suggestion unfocused #5152) still checks that a walk landing clears the open On me view. It now reaches the suggestion withm, which lands on the first ask, thenShift+mback to the suggestion.test_on_me_stays_over_only_the_items_it_lists(On me walk does not reach its expected first position #5153 / On me overlay never reaches its expected item state #5154, both closed as duplicates of each other with no repair) now expects2 of 2 waiting on meat#foot-ask.test_the_obligation_walk_uses_the_visible_reading_after_its_focus_is_released, the comment said "Opening On me from there holds no other place". Its assertion still passes, but only because the first row there is question 1 and stepping off it lands on question 2. The comment now says that.Behaviour these tests now lock in:
g Mthenmlands on On me's second item. #5039 didn't say whether it meant to changem, so #5199 asks the maintainer to decide. The other option keeps the ring but restores the old walk start.Both failing tests failed on
7ad92ebf0and pass with this change. The obligation-walk test passes before and after. I ran all three three times.Closes #5152 — automated triage