Skip to content

test: give the pressed-spot margin card room to grow instead of meeting the window's top - #5215

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5171
Nov 3, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_press_in_the_card_keeps_the_pressed_spot_still has failed both parametrizations on Linux and macOS since #4841: at the first motion step the disclosure stands 10px left and 6px below where it was pressed. Bisecting [key] over d995f3e6d..cc5df725e lands on #4841. At 1200×900 with three progress messages, the opened card grows to the window's top (y=8) and its transcript still overflows by 6px. Before #4841 the press hold absorbed that by scrolling the transcript. #4841 gives an overflowing transcript a scrollbar-gutter: stable gutter, which narrows the end-aligned disclosure's line by the bar's width and rewraps the words above it.

The test is about a card growing up past the disclosure, not a card pinned against the window. It now opens two progress messages, which fit. Every pressed-spot assertion is unchanged, by pointer and by key. This keeps #4841's gutter and the press hold in every case the test was written for. The overflow case, where the pressed control does move by the gutter, is #5214, left for the author of #4841 to decide.

Verification: both [press] and [key] failed on main (683c63e) with the CI diagnostic, and both pass the pressed-spot assertions on this branch. [press] then still fails later at line 221 on "1m ago". That is #4403, a separate open cause. It failed [press] the same way in every scheduled run from Oct 27 to Oct 31.

Closes #5171 — automated triage

…window's top

`test_a_press_in_the_card_keeps_the_pressed_spot_still` failed at its first
reading on Linux and macOS since #4841: the disclosure moved 10px left and
6px down. At 1200x900 with three progress messages, the opened card grew up
to the window's top (y=8) and its transcript still overflowed by 6px, which
the press hold had absorbed by scrolling it. #4841 gives an overflowing
transcript a `scrollbar-gutter: stable` gutter so its words clear the bar;
that narrows the end-aligned disclosure's line by the bar's width and
rewraps the words, so the spot moved.

The test's subject is a card growing up past the disclosure, not a card
pinned against the window, so it now opens two progress messages, which fit.
The pressed spot is still asserted at every motion step, by pointer and key.
The case where a press makes the transcript overflow, and so moves the
pressed control by the gutter, waits on the decision in #5214.

Closes #5171
@leaf-agent
leaf-agent merged commit 2557fca into main Nov 3, 2026
5 of 6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5171 branch November 3, 2026 13:51
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.

Card action moves its pressed position during the gesture

1 participant