Skip to content

test: scroll a control under the playground controls' more-below cue before measuring it - #5575

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5490
Nov 6, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_short_workspace_shows_more_below_its_playground_regions has failed on main since #5243 because the band it measures now holds no content, not because the cue stopped painting. #5243 set a playground's controls on the interface leading (1.45, from 1.35) on purpose. At the test's 1100×600 window that moves the notification playground's controls so the bottom 12px of the box falls on the gap between the Accent field (ending 336px into the box) and the Notification title control (starting at 346px, past the 349px edge). The cue's mask fades only background there, so the screenshot diff counts 24 changed pixels against the test's bar of 100.

The test now scrolls the first control the box cuts off until its label sits under the cue, then checks that the box is still marked as having more below and measures it. The measurement is then of the fade over content, whatever leading the controls take. Product code and #5243's intent are unchanged.

Verification: on main the test fails with assert 24 > 100 (uv run pytest --run-main on that node). With this change it passes, and the cue reads 385 changed pixels. The rest of the test (focus lifting the cue, the end removing it) runs unchanged after the scroll.

Closes #5490 — automated triage

…ore measuring it

test_a_short_workspace_shows_more_below_its_playground_regions measured the
fade in the bottom 12px of the notification playground's controls at 1100x600.
Since #5243 set the controls on the interface leading (1.45, from 1.35), that
band holds the gap between the Accent field and the Notification title control,
so the cue faded only background (24 pixels changed). The test now scrolls the
first control the box cuts off until its label sits under the cue, so it
measures the fade over content whatever the controls' leading; it reads 385
changed pixels. No behavior changes: the cue and #5243's leading stand.

Closes #5490
@leaf-agent
leaf-agent merged commit a521802 into main Nov 6, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5490 branch November 6, 2026 00:06
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.

test_a_short_workspace_shows_more_below_its_playground_regions fails on main since #5243

1 participant