Skip to content

Press the sent thread card's Resolve in place in the margin seats test - #6594

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6591
Nov 20, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_pass_for_a_change_to_the_rows_seats_them_as_a_whole_pass_would fails in two ways after a comment is sent from a selection. This PR removes the more frequent one. locator.click() on the sent card's Resolve makes Chromium scroll the document by about 444 px, even though Resolve is already in view (y 844–872 in a 900 px window). The anchored card follows that scroll a frame or two later. Playwright clicks the old point, which by then is the page's heading or article, and that press dismisses the card. That matches the reported call log: "article intercepts pointer events", then "element is inert", then "not visible" until the timeout. The test now presses through press_visible (tests/render_harness.py), which exists for this Chromium behavior and clicks the control where it stands.

Under leaf-dev suite flake <node> --cpu-throttle 8, main failed 7/18 and 5/16 copies with that signature. With this change, 3 of 18 copies still fail, all at press_visible's to_be_in_viewport, and none show the scroll signature. Those three are the second failure mode, which #6591 keeps open. In some copies, the frame the comment box hands its card at Send (floating-response.js, read from the field's getBoundingClientRect()) reads the box 297 px below where it paints, with the same inline style, no running animation and the same scrollY. The card adopts that offset (comment-placement.js, initialHold) and stands wholly below the window until a later scroll re-places it. That's a runtime bug I haven't explained yet.

The issue's lead, fitOpened in #6557, is ruled out. Restoring its old unconditional fitting = false still failed 4/18.

Refs #6591 — automated triage

…'s scroll

The test pressed Resolve with `locator.click()`. Chromium 156+ scrolls the document
while preparing that click on the anchored, fixed thread card even with Resolve in
view, the card follows the scroll a frame later, and the click lands on the page
under the old point. That press dismisses the card, so the retries find it inert and
then gone. `press_visible` presses the control where it stands, as other tests of
fixed controls already do.

This removes one of the test's two failure modes. The other, the sent card standing
wholly below the window because it adopted a misread comment-box rect, stays open in
the cause issue.

Refs #6591
@leaf-agent
leaf-agent merged commit d714c2e into main Nov 20, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6591 branch November 20, 2026 08: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