Repository navigation
test: unfold a folded panel before reaching the On view's tabs - #6876
Merged
Merged
Conversation
Since #6815 the floating panel folds itself to the leaf where focus lands on a place its row alone would hide. In thread-panel-gallery, a thread view's "Show on page" lands such a place, so the panel folds; the press sweep's restore then reached Threads through `on_tab`, whose one leaf press only unfolded the panel and opened no view, and the Threads tab never appeared. `on_tab` now unfolds a folded panel first, through an `unfold` helper that `open_menu` and `page_comment` already repeated inline. No product behavior changes. Closes #6870
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 #6815 the floating panel folds itself to the leaf when keyboard focus lands somewhere only its row would hide (
giveWayinfloating-panel.js). Inthread-panel-gallery, a thread view's Show on page lands focus in such a place, so the panel folds. The press sweep intests/journeys/test_pressed_controls.pythen gets back to Threads throughon_tab, which presses the leaf once and expects the On view to open. On a folded panel that press only unfolds the row, so the Threads tab never appeared and the click timed out.on_tabnow unfolds a folded panel before anything else. The unfold step is a newunfoldhelper indev/leaf_dev/browser.py, whichopen_menuandpage_commenthad each written out inline. The fold is what #6815 meant to do, so no product behavior changes.Verification: the
[thread-panel-gallery]case failed on every local run onmain(1bf92095f).git bisect runoverd53e9994f..c8ab9ec1dpoints to #6815 (5208e2d88). With this change the case passes, and so do the[catch-up]and[alert-review]cases andtest_on_me_claims_nothing_before_the_first_replay, which usespage_comment.Closes #6870 — automated triage