Repository navigation
test: read an available package surface's room from the shell, as #5056 made it - #5499
Merged
Merged
Conversation
… made it #5056 made the reading column a box at the prose measure, with an `available` block breaking out of it into the shell's room. It moved the browser-tier drawing test to read that room from `--lf-shell-width` less a gutter each side, but this nightly journey kept reading the room as its holder's content box, which is now the 720px prose, so it failed against a surface correctly spanning 1714px. The test now reads the room the same way; the surface's width, its equal children and the page's lack of sideways scroll are unchanged expectations. Closes #5462
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_available_space_is_a_generic_package_capacityhas failed in every nightly run since #5056. That change made the reading column a box at the prose measure, and anavailableblock now breaks out of it into the shell's room. #5056 updated the browser-tiertest_a_drawing_the_room_can_hold_is_shown_wholeto read that room as--lf-shell-widthless a--col-padgutter on each side. This journey runs only nightly, so #5056's CI never ran it, and it still read the room as its holder's content box, which is now the 720px prose. The surface itself was correct: it spanned 1714px of a 1762px window, with two equal 845px children and no sideways scroll.The test now reads the room the same way the drawing test does. Its other expectations are unchanged, and no layout or runtime code changes. Locally on Linux,
uv run pytest tests/journeys/test_render_pages.py::test_available_space_is_a_generic_package_capacity --run-nightlyfails on main with the reported994 <= 1and passes with this change.When it started
The test passed in scheduled run 41432142330 (
72afa89ec2) on Linux and macOS. It failed in 41622727492 (19757c94c5), the first run after #5056 (65ac1a06a) merged. #5281 later changed how the breakout is offset, but it landed after the first failure and doesn't change the box's width.Closes #5462 — automated triage