Skip to content

Three margin and thread tests fail on main since #5410 made a click open a thread in its reply #5643

Closed

Description

@leaf-agent

Since #5410 (a02c20ff0, "Make a margin card act like the floating panel: Resolve moves on, a click opens in the reply"), three browser tests fail on main. Run locally, each fails at a02c20ff0 and passes at its parent 3795150ae. All three still fail on main 903e1d106.

  • tests/browser/margin/test_status.py::test_agent_progress_stays_on_the_thread_control[reduce] and [no-preference] (git bisect run over 09e524975..09cc5bcad on [reduce] landed on a02c20ff0):
    Expect "to_be_hidden" locator(".lf-margin-preview") … Actual value: visible
      <aside part="card" role="dialog" … id="lf-margin-preview" data-lf-focus-within="" …>
    tests/browser/margin/test_status.py:367
    
  • tests/browser/navigation/test_reading_place.py::test_back_returns_the_passage_chosen_between_trips[click-True-False]: Page.wait_for_function: Timeout 120000ms exceeded at test_reading_place.py:441.
  • tests/browser/threads/test_summaries.py::test_a_root_summary_keeps_thread_actions_outside_its_fold[1400-True-10]: assert 2.9990053050397876 <= 1.1 (labelLines) at test_summaries.py:743.

The first failing push run is 41991786341 at 09cc5bcad. They still fail in 42320062138.

#5410 made a click open a thread in its reply (openingPart in thread/focus.js) and made Resolve in a card move on to the next thread. In the status test, the card is still open and holds focus where the test expects it closed. That fits a click that now lands in the reply. #5543 already updated four other tests for click-opens-in-reply. Check whether these three expect what #5410 replaced, or whether the card now stays open, or the summary label wraps, against what #5410 meant. [1440-False-2] of the summary test passes at a02c20ff0; CI first failed it later, at 146189c83, so it is a separate onset (#5651, since #5585).

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 of the three tests expected behavior #5410 replaced, and #5664 updates them. The third shows a real layout regression that needs a decision from @max-sixty.

    Stale tests (#5664). In the status test, a click on › now leaves the caret in the reply, so closing the card takes two Escapes instead of one. In the reading-place test's large variant, the "independent paragraph" sat inside the commented section, so a click there opened that thread in its reply, and the reply took the selection the test waits for. Both tests fail on main 9d3516010 and pass on the branch. No product code changes.

    Summary label (test_a_root_summary_keeps_thread_actions_outside_its_fold[1400-True-10]). This failure is real. It still fails on main 9d3516010. On the 298px touch card, the head row holds Next unread with its words, ⤢, ✓ and ✕. That leaves the root summary's header a 57px first column, so "Earlier discussion" breaks mid-word over three lines and the disclosure is cut to "Sho…":

    Touch card at 1400px: the summary label wraps to three lines beside Next unread

    #5410 kept Next unread's words on a one-thread card even under a finger, and the test asks that the summary label stay on one line. On this card both can't hold. Possible repairs:

    • Under a finger, show only Next unread's chevron, or hide it, on one-thread cards too. On two-thread cards it is already hidden under a finger (annotation-chrome.css). This gives back part of what Make a margin card act like the floating panel: Resolve moves on, a click opens in the reply #5410 picked.
    • When the head row is short of room, let a root summary's header drop below the actions instead of sharing their line.
    • Cut the label with an ellipsis, as message heads beside the actions already are. The test currently rules this out.

    Which of these should hold? I've left the issue open for that decision. The [1440-False-2] case has a separate onset and is tracked in #5651.

  3. added
    waits-on-user
    on Nov 10, 2026
  4. self-assigned this
    on Nov 11, 2026
  5. removed
    waits-on-user
    on Nov 11, 2026
  6. leaf-agent commented on Nov 17, 2026

    @leaf-agent
    CollaboratorAuthor

    All three tests now pass on main: #5664 fixed the two margin and navigation failures and #5673 the summary label. In push run 44026724181 on fe402e39a, test_agent_progress_stays_on_the_thread_control[reduce] and [no-preference], test_back_returns_the_passage_chosen_between_trips[click-True-False] and test_a_root_summary_keeps_thread_actions_outside_its_fold[1400-True-10] all pass. The open question about the summary label's face is tracked in #5672.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

tend-ci-cause

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions