Repository navigation
test: scroll a control under the playground controls' more-below cue before measuring it - #5575
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_a_short_workspace_shows_more_below_its_playground_regionshas 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-mainon 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