Skip to content

test: stop expecting c on a file-tree row to open the composer - #6485

Merged
max-sixty merged 1 commit into
mainfrom
fix/file-tree-letter-test
Nov 19, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/file-tree-letter-test

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_file_tree_reads_standalone_data_without_a_diff_package fails deterministically on main since #6469, which first failed in run 44455882413 (9192a5041). #6469 gives letters typed in a type-ahead widget to that widget, which Max chose on the key-reading review page. So c on a selected file-tree row now types into the tree's search. The test still pressed c on the row and waited for the composer, a step #3556 added when Leaf took shortcut letters ahead of the tree. The wait times out. The c it types also filters README.md out of the tree, which would break the steps after it.

This PR removes that step. #6469's own check in test_render_files.py::test_a_file_tree_opens_each_file_the_editor_holds covers the new behavior: a letter on a row searches the tree. The test keeps its subject, which is the tree reading standalone data and keeping its selection and search across a data change. No product code changes, and nothing of #6469's intent is given up.

Verification: the test passes on #6469's parent (9e0abccb9^) and fails on #6469 and on main (c5ccb1183) with .lf-composer leaf-text never focused. With this change it passes, and so does test_a_file_tree_opens_each_file_the_editor_holds.

Refs #6418 — automated triage

#6469 gave letters typed on a type-ahead widget's row to that widget, so c
on a selected file-tree row now types into the tree's search, as Max chose.
test_file_tree_reads_standalone_data_without_a_diff_package still pressed c
on the row and waited for the composer, which #3556 had added when Leaf took
shortcut letters ahead of the tree. That step now times out, and the c it
types filters README.md out of the tree for the rest of the test. #6469's own
check in test_render_files.py covers the new behavior, so the step goes; the
test keeps its subject, the tree's selection and search across a data change.

Refs #6418
@max-sixty
max-sixty merged commit 57ccd8b into main Nov 19, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/file-tree-letter-test branch November 19, 2026 06:51
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.

2 participants