Skip to content

test: give two comment-box tests room for #7442's taller frame on macOS - #7539

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7532
Nov 28, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Two test_render_anchors tests have failed on every macOS copy since #7442 made the comment box's frame 33px taller. On Linux they still pass only because Linux's fonts wrap these pages' lines differently. This PR changes only the tests' arrangements, so #7442's intent and the placement rules stay as they are:

  • test_a_comment_box_follows_its_passage_and_resume_returns_the_writer: once its passage's foot passes the window's top, the box leaves with the passage, and its own foot hangs 77px below it (scroll-held-in in placement-rules.json). In a 1280×500 window the page can't scroll far enough on macOS to take that foot out of view. The box ended at y: -150.5 with height 167, so its foot showed 16px into the window. On Linux it cleared by 2.5px. A 400px window gives the page room to scroll the box fully away. The test still asserts the box has left and that Resume (g i) brings it back focused with its words.
  • test_the_comment_button_stands_on_no_control: the box opens under its passage over whatever stands there, and placement no longer moves it past controls. On macOS the second paragraph fits on one line, so the board card's grip sat under the field. On Linux that paragraph wraps and the board stands 27px lower. A paragraph before the board keeps the board's controls out of the field's room on either platform. The test still hit-tests every control's corners and centre, then makes the press.

Verification on the macOS runner (flake dispatches of ci):

Commit comment box comment button
bfd1b7b75^ (#7442's parent), 46169803397 8/8 pass 8/8 pass
bfd1b7b75 (#7442), 46169805674 0/8 0/8
main 6313a6f59, 46168668757 0/12 0/12
this branch, 46170921449 18/18 18/18

Both also pass on Linux.

#7532's other four tests are untouched here: the Go-to menu hint, the two teardown shifts and the motion float comparison. That issue carries their diagnosis.

Refs #7532 — automated triage

#7442 made the comment box's frame 33px taller. Two anchors tests then failed 8 of 8 copies on the macOS runner at bfd1b7b, and 0 of 8 at its parent; on Linux they kept passing because Linux's fonts wrap the pages' lines differently.

- test_a_comment_box_follows_its_passage_and_resume_returns_the_writer: past its passage's foot the box leaves with the passage, its own foot hanging below it (placement rule scroll-held-in). In a 500px window the page cannot scroll far enough on macOS to take that foot out of the window. A 400px window gives the scroll room, and the test keeps asserting that the box has left.
- test_the_comment_button_stands_on_no_control: the box opens under its passage over whatever stands there. On macOS the board card's grip stood in that room. A paragraph before the board keeps the board's controls out of it, and the test keeps checking every control's corners.

Refs #7532
@leaf-agent
leaf-agent merged commit 600df62 into main Nov 28, 2026
13 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7532 branch November 28, 2026 17:55
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.

1 participant