Skip to content

Eight browser tests fail since #7417 ported lf-options to Effect UI #7494

Done

Description

@leaf-agent

#7417 ported lf-options to Effect UI. Its buttons and marks now draw in a shadow root, and its selected state is no longer reflected on the authored lf-option. Eight tests have failed on every push run since then.

Test Deciding error
tests/browser/margin/test_pins.py::test_a_pin_keeps_clear_only_of_controls_the_user_can_see TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect'). #7470's description notes that it queries light-DOM lf-options buttons, which moved into the shadow root
tests/browser/test_render_anchors.py::test_one_key_keeps_one_keyboard_face_across_the_page getComputedStyle ... parameter 1 is not of type 'Element'
tests/browser/test_render_pages.py::test_a_wide_widget_stays_inside_a_box_that_frames_it Cannot read properties of null (reading 'getBoundingClientRect')
tests/browser/navigation/test_obligation_walk.py::test_an_obligations_digits_are_drawn_whole #c-heater > .lf-key-badge not found
tests/browser/projection/test_widget_actions.py::test_a_label_in_a_retired_slot_leaves_the_page_with_the_slot the thread view's .lf-thread-quote-head .lf-anchor-status (Changed) is not found
tests/browser/widgets/test_obligations.py::test_ideas_shortlist_survives_revision_and_can_reopen #idea-csv-export has no selected attribute after the pick
tests/browser/threads/test_navigation.py::test_back_returns_to_a_named_control_in_a_message_the_agent_rewrote[browser] and [firefox_browser] #keep [role="checkbox"] (a generated lf-pick span) is not focused after Back

The first three read light-DOM nodes that the port moved, so they likely only need their probes updated. For the last four, it is still open whether the user-facing behavior changed: the badge, the anchor status, the reflected selected and focus returning after Back. Each repair has to settle that, keeping #7417's intent where the behavior is right. #7450 already followed the port in one comparison and one layout test.

First failing run: 46067217098; every push run after it through 46099887165 also fails.

All of these fail on cd2495ac7 (current main when diagnosed) on the Tend runner, running each node id with uv run pytest -n 3. A bisect over main's first-parent commits put the first failing commit at the PR named in the title: each test passes at the commit before it and fails at it.

Cause of a failure tracked in #7387.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #7517 fixes all eight tests. Each one fails on main and passes on the PR branch.

    Four of them caught real regressions from the port, and #7517 fixes those in the code while keeping #7417's design:

    • Retired-slot anchor status: the page reading reset silenced at each declared shadow root. A quote therefore matched the settled label, which now sits in the shadow root of a group inside the accepted-away slot. Silence now carries across declared roots.
    • Reflected selected: a revision replaced an option node it had rewritten, and the group never drew the new node, because its arguments hadn't changed. That left the option with no mark and no selected. The group now draws again on slotchange.
    • Focus after Back: a focus key named a mark in an option's shadow root as the option itself. It now names the mark by its place in the option's root. After a page revision, a restated obligation still hands back the question, not the control.
    • Key badge: placement was right. The test and its shared helpers now climb from the badge to the option that hosts it.

    The other three needed only their probes pointed into the shadow roots.

    The PR's 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