Skip to content

test: put the wide measure on the across options, not their question - #5671

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5650
Nov 7, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5566 made an lf-ask take no width of its own. It ignores data-width on a question, lets a block inside the question that is marked data-width break out, and grows the question's ring round that block. Its instructions and examples moved data-width onto the lf-options. test_options_laid_across_take_a_widened_obligations_width still put the width on the lf-ask and 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 the lf-options laid across. The test, renamed test_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

…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
@leaf-agent
leaf-agent merged commit ae9c668 into main Nov 7, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5650 branch November 7, 2026 16:29
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_options_laid_across_take_a_widened_obligations_width fails on main since #5566 kept a question on the column

1 participant