Repository navigation
fix: use registered scrollers in the published workspace check - #4839
Merged
Merged
Conversation
The footer-only playground instruction bar introduced in #4274 has no child matching the old pane-body inference. Read visible registered regions and their effective scrollers instead, preserving the compact bar and allowing a nested region to use its containing scroller. Keep the document bounded and the complete live published-page sweep. The published-page journey reproduces getComputedStyle(undefined) before this change and passes afterward. A focused code-comparison probe also rejects an unbounded-scroller control. Closes #4827
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.
The published-page journey inferred pane scrollers from direct children, so the footer-only instruction bar introduced by #4274 made code-comparison call
getComputedStyle(undefined). The journey now reads Leaf's registered visible reading regions and their effective scrollers through the diagnostic API. It requires a nonempty set of regions, scrollers inside the workspace with automatic overflow, and a document that does not scroll. A nested region may use its containing region's scroller, as the compact instruction bar intentionally does.This preserves #4274's compact bar and popover and retains the complete live published-page sweep. The existing synchronous check-API wait resolves the module before polling the predicate.
Validation:
uv run pytest tests/journeys/test_site.py::test_every_published_page_stands_as_a_live_page -xq -n0reproduced the reported failure on the unchanged test and passes with this change (1 passed). A focused Chromium probe on code-comparison passes normally and rejects a control with its scrollers disabled. Ruff lint/format, Python compilation andgit diff --checkalso pass.Closes #4827 — automated triage