Skip to content

test: expect the contents map to rise to its sticking line before it stands still - #7507

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7501
Nov 28, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_the_lens_follows_the_scroll_in_every_engine failed in Chromium, Firefox and WebKit on the assertion that the map stands still in the window (AssertionError: [96, 56, 56]). The lens itself followed the scroll the whole time. That assertion passed. #7486 dropped the contents map's fixed track, and its description says a spine page with no header or footer now shows the map level with the page's first line, and the map rises 40px before it sticks. The test's map positions match that exactly: 96px at the top, then 56px once stuck. So the test's expectation is stale, and the code is behaving as the maintainer chose.

The test now asserts that the map stands still once its track sticks, from the middle of the document to its foot. The lens assertion is unchanged. Run by node id with --run-main -n0: the test fails in all three engines on main (99fcb95a3) and passes in all three with this change. The neighbouring sticking-track and spine tests also pass.

Closes #7501 — automated triage

…stands still

#7486 dropped the contents map's fixed track, so on a spine page with no
header or footer the map now opens level with the page's first line and
rises 40px before it sticks, as that change said it would. The lens test
still asserted the map stood still from the page's top, so it failed in
every engine with the map at [96, 56, 56]. It now asserts the map stands
still once stuck, between the middle and the foot. The lens's own
assertion, that it follows the scroll, is unchanged and passed throughout.

Closes #7501
@leaf-agent
leaf-agent merged commit 70aa86f into main Nov 28, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7501 branch November 28, 2026 07:56
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_the_lens_follows_the_scroll_in_every_engine: the contents lens stops following the scroll since #7486

1 participant