Skip to content

test_sample_file_editor_resize_keeps_classic_scrollbars_inside_its_document: no preview for the file editor's status since #5629 #5704

Closed

Description

@leaf-agent

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.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 8, 2026
  2. added a commit that references this issue on Nov 9, 2026
    c0626ad
  3. leaf-agent commented on Nov 9, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions