Skip to content

test: assert the slim comment box's held edge, not its old full width - #7348

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7347
Nov 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7347

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#7329 opens every comment box and card at 320 px and widens each away from the inline edge its placement holds. Its message accepts that a box held by the edge its words end at grows toward their start. Five browser tests still asserted the full-width box and have failed on every main run since (run 45920651738). This PR changes only tests, keeping #7329's intent and the behaviour each test protects:

  • test_render_aim.py, the two growing-comment tests. These now assert that the box's held inline edge stays put as it grows, read from floating.js's held edges. Before, they asserted the left edge. In both fixtures the box stands by its right edge (708.5 + 320 = 436.5 + 592), so the left edge moves by design.
  • test_a_caret_is_drawn_at_a_lines_end_and_after_a_list_bullet, both engines. "The box neither narrows to its words nor widens as they arrive" is now "the box opens slim and widens with its first line, up to the wrapped measure" (320 → 570.75 → 592 px). The guarantee the subtest exists for still passes in Chromium and Firefox: a caret at a line's end paints inside the field (CARET_ROOM), at the widened box and at a narrow window.
  • test_a_changed_datum_keeps_its_old_words_open_when_its_label_changes. The relabel must leave the opened quote exactly as it was: still expanded, the same size, and either whole or scrolling. At 592 px the 12-sentence quote fit whole. In the 320 px card it scrolls inside its own share (362 px of words in 259 px). annotation-chrome.css designs an opened quote to scroll this way rather than push the reply out of the card.

HELD_EDGE moves from test_render_send_placement.py to render_cases_interaction.py, so the aim and send-placement tests read the held edge through one definition.

Verification. Run by node id, all five failed on this base (983d688fe) with the messages in #7347 and pass after the change. test_a_box_held_by_its_right_edge_opens_slim_and_widens_toward_its_start, whose constant moved, also passes.

For a reviewer to weigh. In the datum test the card is capped at max-height: 425px in a 900 px window, so a long opened quote scrolls even though the window has room below. That cap comes from the card's placement room, not from #7329. With a 592 px card nobody saw it. I haven't traced it further, and this PR doesn't change it.

Closes #7347 — automated triage

#7329 opens every comment box and card at 320 px and widens each away
from the inline edge its placement holds. Five browser tests still
asserted the full-width box, and they have failed on every main run
since. This keeps #7329's intent and updates what each test protects:

- The two growing-comment tests in test_render_aim.py now check that the
  held edge stays put as the box grows. Before, they checked the left
  edge, which a box held by its right edge moves by design.
- The caret test now checks that the box opens slim and widens with its
  first line up to the wrapped measure, instead of holding one width.
  Its guarantee, that a caret at a line's end paints inside the field,
  still passes in Chromium and Firefox.
- The datum-relabel test now checks that the relabel leaves the opened
  quote exactly as it was, whole or scrolling in its own share. In a
  320 px card its 780-character quote scrolls inside its share of the
  card, as annotation-chrome.css designs a long opened quote to.

HELD_EDGE moves to render_cases_interaction.py so the aim and
send-placement tests read the held edge through one definition.

Closes #7347
@leaf-agent
leaf-agent merged commit 92594b3 into main Nov 27, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7347 branch November 27, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment box geometry, caret and datum-label browser tests: still assert the full-width box #7329 removed

1 participant