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_a_sample_in_a_reply_is_quoted_there_too: a live option in a panel reply is never visible since #7542 #7556
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.
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.
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.
Activity
leaf-agent commentedon Nov 28, 2026
Fix in #7557. The option that never shows,
#rp-memory, is in the quoted exhibit (#rp-quotedinsidelf-sample), not the live group. That exhibit'slf-optionsdrew 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, notlf-options.js. The exhibit mounts, leaves the page long enough for its root to close, and comes back. The host sets itsstateonce it is back in the document but before itsconnectedCallbackruns. Since #7542,connectedCallbackcleared 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, andpnpm run test:runtimepasses. The PR's CI and landing are still pending.