You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document: no preview for the file editor's status since #5629 #5704
tests/browser/test_render_files.py::test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document fails on main since #5629 (d2abaa215, "Fix the main tests the preview PRs broke, and three preview gaps behind them"). It passes at its parent f438a9e2a and fails at d2abaa215 and 929aa412f locally with uv run pytest --run-main. It failed in each push run from 42366786261 (ec2799b1d) through 42452611077 (957cb8820).
> expect(child.locator("#lf-preview .lf-preview-detail")).to_have_text(
E AssertionError: Locator expected to have text 'No file is bound as 'notes'.'
E Error: element(s) not found
- main:
- heading "File practice" [level=1]
- text: notes Unavailable
- button "Retry"
- textbox "File contents"
The test hovers the file editor's .lf-file-editor-status inside the sample's iframe and expects the preview to say why it can't save (test_render_files.py:431). Since #5629, no preview detail appears there. That may be one of #5629's preview gaps it closed on purpose, such as which elements a preview stands for, or a regression for a status inside a sample frame.
This was #5629 working as intended, so the fix goes in the test. #5629 stopped treating an element with an empty data-lf-offer as a control, and the file editor's status span is one of those. So the preview no longer puts the status's accessible name first. The status's lfPreview still declares "No file is bound as 'notes'.", and lines() in preview.js now draws it as the name line instead of a .lf-preview-detail line under the accessible name. The preview still shows when you hover the status; the message just sits on a different line.
#5730 changes the test to read the preview's whole face and expect exactly that message. The test fails on main at 2f47830e4 with this issue's error and passes on the branch. The PR's CI and review are still pending.
Activity
Read the file editor status's preview as its only line since #5629
leaf-agent commentedon Nov 9, 2026
This was #5629 working as intended, so the fix goes in the test. #5629 stopped treating an element with an empty
data-lf-offeras a control, and the file editor's status span is one of those. So the preview no longer puts the status's accessible name first. The status'slfPreviewstill declares "No file is bound as 'notes'.", andlines()inpreview.jsnow draws it as the name line instead of a.lf-preview-detailline under the accessible name. The preview still shows when you hover the status; the message just sits on a different line.#5730 changes the test to read the preview's whole face and expect exactly that message. The test fails on main at
2f47830e4with this issue's error and passes on the branch. The PR's CI and review are still pending.