Skip to content

test: unfold a folded panel before reaching the On view's tabs - #6876

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-6870
Nov 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-6870

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Since #6815 the floating panel folds itself to the leaf when keyboard focus lands somewhere only its row would hide (giveWay in floating-panel.js). In thread-panel-gallery, a thread view's Show on page lands focus in such a place, so the panel folds. The press sweep in tests/journeys/test_pressed_controls.py then gets back to Threads through on_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_tab now unfolds a folded panel before anything else. The unfold step is a new unfold helper in dev/leaf_dev/browser.py, which open_menu and page_comment had 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 on main (1bf92095f). git bisect run over d53e9994f..c8ab9ec1d points to #6815 (5208e2d88). With this change the case passes, and so do the [catch-up] and [alert-review] cases and test_on_me_claims_nothing_before_the_first_replay, which uses page_comment.

Closes #6870 — automated triage

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
@max-sixty
max-sixty merged commit e20f73b into main Nov 23, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-6870 branch November 23, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press[thread-panel-gallery]: the Threads tab never resolves for open_thread's click

2 participants