Repository navigation
test: expect g Shift+T to focus the kept draft's row in the visual review journey - #6186
Merged
Merged
Conversation
…review journey Since #6060, Threads lists a kept draft as a row, and a list opened by a key lands on its first row (floating-panel.js, focusView); the view holds focus itself only where it lists nothing. The journey's two `g Shift+T` steps still expected the empty view's own focus. They now expect the draft row, which also shows the journey's draft listed. Closes #6177
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.
Since #6060, Threads lists a kept draft under Drafts, and a list opened by a key lands on its first row; the view keeps focus itself only where it lists nothing (
focusViewinbrowser/runtime/floating-panel.js). The visual review journey leaves "Restore Back to releases" in a comment field, presses Escape, thengShift+Ttwice, and both steps still expected focus on the empty Threads view. With the draft now listed, the key lands on the draft's row, as #6060's landing rule says it should when no thread is open. The test now expects that row, and checks that it shows the journey's draft.This changes only the test. #6060's description says
g T"still lands on the first thread"; with no open thread, the fallback to the first row is the documented rule, so the code is not changed.test_an_authenticated_navigation_journey_becomes_credential_free_review_evidencefails onmainatf1b367375with the reportedto_be_focusederror and passes with this change, run locally by node id.Closes #6177 — automated triage