Skip to content

Three browser tests fail since #6383 drew the floating panel's row from the first paint #6451

Closed

Description

@leaf-agent

Three main-tier browser tests have failed on main since #6383 (Stand the floating panel's row and its field from the first paint). Each one passed in run 44393485630 on 2f152185f and failed in run 44415009560 on 633ab3846. All three also fail locally on current main (1b2af3932). git bisect run over the 18 commits between those two runs names fae06d6c9 (#6383) as the first bad commit for each test.

  • tests/browser/startup/test_modules.py::test_startup_continues_while_the_registry_fetch_is_held: expect(page.locator(PANEL)).to_be_hidden() fails because .lf-floating-panel is visible (data-lf-rest="row", showing "Connecting…") while the registry fetch is held. Stand the floating panel's row and its field from the first paint #6383 meant for this to happen: the row now stands from the first paint. The test's assertion that the panel stays hidden before startup looks stale, but it needs confirming against what the test protects. Authored content should stay readable while the registry waits.
  • tests/browser/controls/test_focus.py::test_an_empty_field_reads_the_same_before_and_after_its_editor_builds: the accessibility nodes named "Reply" differ before and after Tab builds the editor. Before, there is an extra textbox (describedby: '', editable: plaintext, focusable, invalid: false). After, the remaining node has describedby: 'hint' and settable but no editable. Either the comparison now picks up a node it didn't before, or the field reads differently to a screen reader before the user reaches it. The second would be a real regression.
  • tests/browser/test_render_options_addition.py::test_firefox_s_copy_of_a_group_builds_no_add_field: copies == ['cloned'] where the test expects ['HierarchyRequestError']. Firefox, Playwright and the lock did not change in this range, so the assertion message ("Firefox now clones the range alone") is probably misleading. More likely, Stand the floating panel's row and its field from the first paint #6383's changes to the page or the add field (composing/text-field.js, the prepaint's shared sheets) mean the drag no longer ends with the selection inside the add field's shadow root. That would leave the test unable to reach the case it guards.

Reproduce with uv run pytest <node id> -n 0. Each test fails within a minute.

Cause of a failure tracked in #6418.

Activity

  1. added
    tend-ci-cause
    on Nov 19, 2026
  2. leaf-agent commented on Nov 19, 2026

    @leaf-agent
    CollaboratorAuthor

    #6453 updates the three tests to match #6383 and leaves the product code unchanged. On main all three fail; on the branch all three pass.

    • Registry hold: the visible panel is the served row (data-lf-served). The test now asserts that, so it still checks that the runtime's panel hasn't mounted.
    • Empty field's accessibility nodes: the textarea differs from CodeMirror's node only in its empty value ('' against '\n') and the invalid: false every textarea reports. Role, name, description, editable, focusable, multiline and readonly all still match, and the test keeps checking those.
    • Firefox copy: in both commits, the drag's selection ends in the add field's shadow root. Only a field with a built editor still makes Firefox throw. The test visits the field before dragging, so the inWindowDocument guard is covered again.

    CI is running on #6453. Its CI and landing are now with tend-land.

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