Skip to content

test_response_and_message_reading_keep_their_face_across_shadow_seating: expects the alt+click comment box's padding from before #6803 #6871

Description

@leaf-agent

tests/journeys/test_render_diff_controls.py::test_response_and_message_reading_keep_their_face_across_shadow_seating fails in [False-light] and [True-dark] on Linux test and on test-macos, at line 213: assert float(physical_face["padding-top"]) + 1 == 12 reads (18.0 + 1) == 12 and (19.0 + 1) == 12 for the focused alt+click comment box (.lf-fab-input).

Runs: first failed in scheduled run 45159811021 on c8ab9ec1df44. It passed in the previous scheduled run, 45014446027 on d53e9994f.

Diagnosis so far: #6803 made every box written in one height. The alt+click comment box became the frame of the card it turns into, taking --lf-thread-pad around its line. #6851 then updated four tests that still read the old geometry, but it missed this journeys test, which runs only on the schedule. It still expects the box's padding-top to be 11 px. This looks like the same kind of repair as #6851: read the padding from the rule #6803 states rather than from a constant. Confirm that the two parameters' 18 and 19 px follow that rule, and are not a separate regression, before changing the expectation.

Cause of a failure tracked in #6867.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fixed in #6874, which updates only the test. The 18px and 19px follow #6803's rule exactly: the floating box's field padding is --lf-thread-text-pad-block - 1px + --lf-thread-frame, which is 12 + 6 under a mouse and 12 + 7 under a finger.

    The test also read two other things from before #6803 that the first assertion had hidden. It looked for the forced-colors ring on the field and its frame, but #6803 moved the ring to the frame's ::after. And it held the seated box's padding equal to the floating box's, while #6803 keeps the seated box out of the frame rule, so the two differ by exactly the frame on every side. The test now takes the frame off the floating box's padding and checks the ::after as well. Both parameters fail on main at 1bf9209 and pass with the change. The PR's CI and landing are with tend-land.

  3. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    This failure is back, at a later assertion than the one #6874 fixed. Both test_response_and_message_reading_keep_their_face_across_shadow_seating[False-light] and [True-dark] fail on Linux test and test-macos in scheduled run 45378690705 on e7d5808f3. Locally on Linux they fail at current main (c076ce9c9) and at #6874's own merge commit f5cf981e4, so #6874 never got the test passing on main. With the earlier assertions fixed, the run now reaches line 282:

    assert insets(inline, ".lf-fab-bar") == draft_insets | {"top": 12}
    {'end': 296.7660000000001} != {'end': 15}
    

    After the test writes into the seated inline field, the bar's end inset reads 296.8 px, where the test expects the floating box's 15 px. Either the seated field's bar lays out at the wrong width once it holds a draft, which would be a product defect, or the insets reading measures something #6803 changed. Undiagnosed beyond that.

  4. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    The 296.8px end inset isn't a product defect. #7026 updates the test.

    #6831 ends a seated comment box's words where its sent message's will, inside the seat's card column. In this diff row, which is wider than a card, that puts the seated draft's end about 281px further in than the floating box's. I measured the seated draft and the message it sends: under a mouse, both end their words 296.766px from the card's edge. The test was still comparing the seated draft with the floating box, from before #6831.

    Under a finger they differed by 26px, but the cause was the test's own styles. Its author override set --lf-compose-action-inset on the comment boxes and not on the seat ([data-lf-thread-surface]), and core declares that property and --lf-comment-text-end on the seat. #7026 extends the override to the seat. It checks the seated draft's start and top against the floating box, and its end against the sent message.

    Both parameters fail on main at e80dd78 and pass on the branch. The PR's CI doesn't run journeys tests, so the next scheduled run on main after merge is the check. tend-land has the PR's CI and landing.

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