Skip to content

Read the file editor status's preview as its only line since #5629 - #5730

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5704
Nov 9, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5704

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document has failed on main since #5629. That PR narrowed what preview.js counts as a control to a native or ARIA press, or a data-lf-offer that 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. Its lfPreview still 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 2f47830e4 with the issue's error (.lf-preview-detail not found) and passes on this branch with uv run pytest --run-main on that node id.

Closes #5704 — automated triage

#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
@leaf-agent
leaf-agent merged commit fc7a820 into main Nov 9, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5704 branch November 9, 2026 08:43
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_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document: no preview for the file editor's status since #5629

1 participant