Skip to content

Five thread, panel and drawing layout tests fail on main since #6773 ran the reply box to the card's edges #6792

Closed

Description

@leaf-agent

Five browser tests have failed on main since #6773 (d9f336b3c, which runs a thread card's reply box to the card's edges and cuts card and thread padding to 6px and 8px). Each one passes at its parent 65cd90cc0 and fails at d9f336b3c and at current main 1a851b3a5, deterministically, run locally by node id. They first failed on main in run 45077573453 on e4cf2802. Every run between that commit and the last green push run (75c3a82cbb) was cancelled.

Test Deciding assertion
tests/browser/navigation/test_threads.py::test_inline_thread_surface_has_room_without_focus_reflow an inline thread's child sits 1px from the thread's edge, against a floor of 3 (clearances [7, 7, 7, 57, 7, 7, 71, 57, 1, 1, 95, 1])
tests/browser/test_render_drawing_context.py::test_drawing_preview_contains_page_content_and_freezes_it[dark-True] on touch at 390px, Undo last stroke no longer takes a press at ±21px from its centre (elementFromPoint hits something else)
tests/browser/test_render_floating_panel.py::test_a_line_the_field_gives_up_rides_the_box_s_top_edge the tween's first frame differs from the resting panel by 352 px, against a tolerance of 300
tests/browser/test_render_reactions.py::test_the_response_field_grows_across_its_bar a sent message's body ends at x=553 while the card's reply field ends at 559, and the test expects them flush
tests/browser/widgets/test_diffs.py::test_a_diff_conversation_s_reply_rests_as_the_margin_card_s_field a seated diff conversation's reply box reads framed: False, so its top border is transparent

Diagnosis so far. The cause is established only down to the commit. #6773 intended the reply box to meet the card's sides and foot, and the thread's words to stand one 8px inset in. That would explain why the message body and the reply field no longer share a right edge, and why a thread child now sits about 1px from the thread's edge. Whether each assertion is now outdated or protects a guarantee #6773 broke has not been judged. Two cases look most likely to be real regressions rather than outdated expectations: the touch reach of the drawing controls (the finger's 44px floor), and the seated diff reply losing its frame, since #6773's description says nothing about unframing it. The pixel tolerance in the floating-panel tween test is a widening candidate, so read its history (git log -L) before raising it (running-tend, Reading a red suite).

Reproduction
git checkout --detach 65cd90cc0   # 6 passed
git checkout --detach d9f336b3c   # 5 failed, 1 passed (the light, non-touch drawing case passes)
uv run pytest -p no:randomly -n 0 -q \
  tests/browser/navigation/test_threads.py::test_inline_thread_surface_has_room_without_focus_reflow \
  tests/browser/test_render_drawing_context.py::test_drawing_preview_contains_page_content_and_freezes_it \
  tests/browser/test_render_floating_panel.py::test_a_line_the_field_gives_up_rides_the_box_s_top_edge \
  tests/browser/test_render_reactions.py::test_the_response_field_grows_across_its_bar \
  tests/browser/widgets/test_diffs.py::test_a_diff_conversation_s_reply_rests_as_the_margin_card_s_field

Check out each commit in the main checkout. A git worktree with a copied .venv imports the main checkout's sources through the editable install, so it would test the wrong code.

Cause of a failure tracked in #6789.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #6794 fixes this. One of the five failures was a real regression from #6773, and the other four were expectations #6773 deliberately replaced.

    All five pass by node id on the PR branch. Its CI and landing are 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