Skip to content

Sixteen browser tests fail on main since #5428 rested the comment box beside c's target #5641

Closed

Description

@leaf-agent

Since #5428 (b0aaf9038, "Show where c goes before the press, and stop it following focus out of sight"), sixteen browser tests fail on main. Each one passes at its parent 0e61e7da1 and fails at b0aaf9038 when run locally with uv run pytest --run-main. The served-markup test was also bisected over 09cc5bcad..b3c9842e8 (git bisect run), and the bisect also landed on b0aaf9038. All sixteen still fail on main 903e1d106. They first failed in push run 42010431285 at b3c9842e8 and still fail in 42320062138.

#5428 meant to stand a field-shaped resting box, .lf-fab-rest, beside the target c would open, with fabAnchor null while it rests. The panel's row now wears the key while c enters it, and c no longer follows focus that has scrolled out of sight. The failures group by what the resting box changes:

  • The bar is visible where the tests expect it hidden. Locator expected to be hidden … locator(".lf-fab-bar") … Actual value: visible
    • test_render_reactions.py::test_a_reaction_returns_focus_to_the_visual_target[aim], [keyboard]
    • test_render_reactions.py::test_a_declared_visual_part_can_raise_the_same_bar_from_the_keyboard
    • test_render_aim.py::test_an_aim_at_a_seam_promises_the_element_its_press_takes (subtest)
    • test_render_reactions.py::test_a_picture_in_a_control_stays_the_controls_and_any_other_takes_a_comment shows the same message in CI runs since 42264154777, intermittently earlier; it passed locally on main.
  • The resting box moves without input, as the motion watch reads it: button.lf-response-face.lf-fab-rest.lf-ui.lf-ui-face moved without input by (-29, 0)px; the same frame moved div.lf-…
  • A revision keeps served markup alive: the revision left the served ['served', 'served-feed', 'served-link', 'served-selection'] in memory
    • projection/test_revision_patches.py::test_a_revision_releases_the_served_markup_it_removes[focused], [link], [selection]
  • Other consumers
    • margin/test_page_map.py::test_g_hints_press_each_visible_page_map_margin_entry: Locator.click: Timeout … lf-draft[id="address-disclosure"] [data-lf-draft…
    • navigation/test_on_panel.py::test_a_tally_counts_its_regions_obligations_and_walks_them: Locator.click: Timeout … get_by_role("tab", name="Second")
    • margin/test_status.py::test_margin_entry_tone_stays_distinct_from_control_and_agent_state: 'rgb(28, 27, 24)' != 'rgb(47, 84, 128)' (two subtests)
    • test_render_diff_controls.py::test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place: strict mode violation: get_by_role("button", name="After diff") resolved to 2 elements
    • widgets/test_lifecycle_and_controls.py::test_a_control_a_widget_built_is_told_from_a_label_it_wrote: a control a widget built does not take the hand: [{'cursor': 'pointer', …

Some of these may be tests whose expectations #5428 replaced on purpose: the hidden bar, and the click timeouts where the resting box now stands over a target. Others look like product regressions that need a closer look: the served markup kept in memory, the resting box moving without input, and the second "After diff" button. Follow Reading a red suite in .claude/skills/running-tend/SKILL.md, and split this issue where the mechanisms differ. #5428's test job ran only the browser tests whose source it edited, so these modules didn't run until main.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Two nightly journeys also fail because of #5428. Push runs never run journeys, so this issue's list doesn't include them:

    • tests/journeys/test_live_shell_artifact.py::test_a_browser_executes_the_published_capture_with_live_api_routes[False] and [True]. Both fail in scheduled runs 42014155473 and 42205827418, and on main 903e1d106:
      Locator expected to be focused Actual value: None Error: strict mode violation: get_by_role("button", name="Read captured value") resolved to 2 elements: 1) <button id="read" type="button" data-lf-focus="" data-lf-mark="focus" … class="lf-projected-mark" …>Read captured value</button>
      

    b0aaf9038^ fails them for #5228's older reason, so I cherry-picked #5439 (e0c0f9c5f) onto b0aaf9038^ and onto b0aaf9038. The journeys pass on the first. On the second they fail with this same strict-mode violation. The projected focus mark (lf-projected-mark) gives the button's role and name to a second element. #5645's test_scrollbar_clearance_reads_generic_content_and_open_shadow_words reports the same violation for "First choice", so the two issues may share that mechanism.

  3. leaf-agent commented on Nov 7, 2026

    @leaf-agent
    CollaboratorAuthor

    Split into three repairs and one decision. On main ec2799b1d, all sixteen tests still failed before these.

    The two test_live_shell_artifact.py journeys in the comment above weren't checked against these changes, and #5645 may share their mechanism. This issue stays open for them and for #5663's answer.

  4. leaf-agent commented on Nov 8, 2026

    @leaf-agent
    CollaboratorAuthor

    Down to three tests, each tracked in another issue. On main 7bbf42933 the two test_live_shell_artifact.py journeys and test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place now pass (uv run pytest --run-nightly -n0, 3 passed). No scheduled run has gone through since #5662 merged, so the next daily run will show the same result on CI.

    These still fail locally on 7bbf42933, with the same messages as before:

    This issue stays open until #5663 is answered.

  5. leaf-agent commented on Nov 16, 2026

    @leaf-agent
    CollaboratorAuthor

    Closing: everything this issue tracked is fixed on main except one teardown failure, and #5642 owns that.

    On main a09135969 (uv run pytest --run-main -n0):

    The other failures listed above were fixed by #5660 and #5662 or have passed on main since, as the earlier comments here record.

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