Repository navigation
test: put the wide measure on the across options, not their question - #5671
Merged
Merged
Conversation
…re test #5566 made an `lf-ask` take no width of its own: `data-width` on a question is ignored, and a block inside it marked `data-width` breaks out while the question's ring grows round it. The test still widened the `lf-ask` and expected it, and its options, to pass the 720 px column, so it failed from 744d90c on. The fixture now puts `data-width="wide"` on the `lf-options` laid across, where #5566's instructions put it, and the test asserts that the options take more than the column, that the question encloses them, and that the three cards fill the row together. The behaviour it protects, cards laid under the whole wide measure rather than at the column beside an empty strip, is unchanged; what moved is which element asks for the room. Closes #5650
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.
#5566 made an
lf-asktake no width of its own. It ignoresdata-widthon a question, lets a block inside the question that is markeddata-widthbreak out, and grows the question's ring round that block. Its instructions and examples moveddata-widthonto thelf-options.test_options_laid_across_take_a_widened_obligations_widthstill put the width on thelf-askand expected the question to pass the 720 px column, so it has failed on main since 744d90c (assert 720 > 720).The fixture now puts
data-width="wide"on thelf-optionslaid across. The test, renamedtest_options_laid_across_fill_the_wide_measure_they_ask_for, asserts three things: the options take more than the column (908 px at 1726 px in the sidebar layout), the question's box encloses them, and the three cards share one row and fill it. It still protects the same behaviour: cards laid under the whole wide measure, not at the column beside an empty strip. The only change is which element asks for the room. One assertion is looser: the question no longer equals the options' width (1472 vs 908), because #5566 lets a question that holds a wide block give up its measure.Locally, the old test fails on main with the issue's message. The restated test passes, and so does
test_options_marked_across_lay_across, which shares the fixture.Closes #5650 — automated triage