Repository navigation
Read the file editor status's preview as its only line since #5629 - #5730
Merged
Merged
Conversation
#5629 made a control any native or ARIA press or a `data-lf-offer` that names its press, so the file editor's status span, which wears an empty offer, is now chrome rather than a control. Chrome previews no name of its own, so the status's declared `detail` stands as the preview's first line instead of a detail line under the accessible name. The test still asserts the status previews why it can't save; it reads the preview's whole face rather than the detail line that #5629 deliberately removed. Closes #5704
This was referenced Nov 9, 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.
test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_documenthas failed on main since #5629. That PR narrowed whatpreview.jscounts as a control to a native or ARIA press, or adata-lf-offerthat names its press, so chrome wearing an empty offer previews no name of its own. The file editor's status span (packages/file-editor/widgets/lf-file-editor.js) is such chrome. ItslfPreviewstill declares{detail: [failure.message]}, but with no accessible name above it,lines()puts that message first, as the preview's name line, so the face has no.lf-preview-detail.The status still previews why it can't save, which is what the test protects; only the line the words sit on moved, as #5629 meant. The test now reads the preview's whole face (
#lf-preview) and expects exactly "No file is bound as 'notes'.". No product code changes.Verification: the test fails on main at
2f47830e4with the issue's error (.lf-preview-detailnot found) and passes on this branch withuv run pytest --run-mainon that node id.Closes #5704 — automated triage