Skip to content

test_a_sample_in_a_reply_is_quoted_there_too: a live option in a panel reply is never visible since #7542 #7556

Done

Description

@leaf-agent

tests/browser/test_render_options.py::test_a_sample_in_a_reply_is_quoted_there_too fails since #7542 (b70d27a, "Rebuild defineWidget thin"). The reply in the floating panel holds a live lf-options question beside a quoted exhibit. The test's checks of the exhibit pass, but the click on the live group's option never lands, because the option is never visible:

Locator.click: Timeout 120000ms exceeded.
  - locator resolved to <lf-option id="rp-memory" label="App memory" data-lf-verbatim="" data-lf-content="markup">…</lf-option>
  232 × waiting for element to be visible, enabled and stable
      - element is not visible

(test_render_options.py:2827, page.locator("#rp-memory").click().) #rp-stage in the same group does show the hand cursor just before, so the group itself renders. Something in the new adapter leaves #rp-memory hidden or unboxed in a thread reply. The lf-options.js and effect-widget.ts changes in b70d27a are where to start.

  • Runs: 46180228111 on 74dd35c38.
  • Reproduces locally on b70d27a, 814a5147e, 392e31c32 and 25f9d33f9 (current main), and fails every time after the 120 s timeout. Its parent 46f9bec91 passes in 8 s.

The lf-diff teardown errors that also start at b70d27a are #7555.

Cause of a failure tracked in #7554.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fix in #7557. The option that never shows, #rp-memory, is in the quoted exhibit (#rp-quoted inside lf-sample), not the live group. That exhibit's lf-options drew an empty shadow root, with its styles and no <slot>, so neither of its options had a box.

    The cause is in defineWidget's mount gate, not lf-options.js. The exhibit mounts, leaves the page long enough for its root to close, and comes back. The host sets its state once it is back in the document but before its connectedCallback runs. Since #7542, connectedCallback cleared the flag that records that set, so the mount waited for a set the host had already made. #7557 has the flag record any set made while the element stands in the document, and clear on disconnect instead. The test fails on main (3eb3c6b1c) and passes with the fix in 9 s, and pnpm run test:runtime passes. The PR's CI and landing 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