Skip to content

test: expect a contents map in its sidebar track in the layout-child journey - #5706

Merged
leaf-agent merged 1 commit into
mainfrom
fix/layout-child-contents-map
Nov 9, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/layout-child-contents-map

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5637 made a document sidebar's contents map an ordinary block in its track, where it had been a fixed 24px spine, and removed the position: fixed expectations from the browser tests it touched. The nightly journey test_a_layout_on_a_child_of_main_arranges_it_as_it_would_main kept one (assert on_main["contents"][2] == "fixed"). It has failed since scheduled run 42365682113: assert 'static' == 'fixed'.

That line made sure the lf-toc had actually drawn as the map before the test compared a layout on main with one on a child of main. It now checks what #5637 guarantees instead: the map's box lies inside its sidebar track. The comparison itself is unchanged, and no product behavior changes.

Verification: the journey passes at #5637's parent 119921814 and fails at 391c24622, both run locally with --run-nightly. With this change it passes on main fcad5fa09.

Refs #4225 — automated triage

…journey

#5637 made a document sidebar's contents map an ordinary block in its
track instead of a fixed spine, and updated the browser tests that
expected `position: fixed`. The nightly journey
test_a_layout_on_a_child_of_main_arranges_it_as_it_would_main still
asserted it, so it has failed since 391c246. It now asserts that the
map lies within its sidebar track. Its comparison of a layout on main
with one on a child of main is unchanged.

Refs #4225
@leaf-agent
leaf-agent merged commit 2ef9110 into main Nov 9, 2026
13 of 17 checks passed
@leaf-agent
leaf-agent deleted the fix/layout-child-contents-map branch November 9, 2026 08:39
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.

1 participant