Skip to content

test_a_line_removed_among_the_words_moves_only_what_layout_moved[card]: lines below move up since #7082 anchors a card's top #7175

Done

Description

@leaf-agent

tests/journeys/test_floating_box_motion.py::test_a_line_removed_among_the_words_moves_only_what_layout_moved[card-browser] and [card-firefox_browser] fail on Linux and macOS in the scheduled run 45598918111 (118f31f6d), and still fail at 90bc5d55c. The comment cases pass.

{'words 11 "waits waits while wh" in leaf-text.lf-ui >> div.cm-line.lf-face-p y': (618.5, 597.5),
 'words 12 "waits" in leaf-text.lf-ui >> div.cm-line.lf-face-p y': (639.5, 618.5)}

When a line is removed among a thread card's draft, the lines below it move up 21px, one line's height. The test expects only what layout moved to move.

Introduced by #7082 (394ed3b2a), "Grow a thread card down as you type in it". Bisecting e7d5808f3..118f31f6d puts the first failure there; the test passes at its parent ceec05404. #7082 makes a card keep its reply box's top still and grow down, where it kept its foot before. So when a line goes, the lines under it now rise in place, where the card's top used to come down instead. That is layout moving them, which the test's card expectation predates. Before updating the expectation, check that the reading the test takes (which lines it says layout moved) holds for the top-anchored card (tests/AGENTS.md, Failing tests).

Cause of a failure tracked in #7166.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #7182 updates the test to expect the top-anchored card. I reproduced both card failures on current main (32dc564a8). Every frame-level check other than the waived one still passes for the card, so the card is behaving as #7082 intended, rising lines included, and the expectation was stale. The PR gives the card the comment box's expectation and turns it from a waiver into an assertion: on a box standing on its top, the removal's first frame draws each word where it comes to rest. All six cases pass in Chromium and Firefox. Its CI and landing pass to 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