Skip to content

test: expect a short root tab view to show the page's end under the stuck strip - #7533

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_root_tabs_switch_views_without_moving_the_strip_and_follow_history asserted that switching the stuck root tab strip to Summary, a view much shorter than the window, keeps the page scrolled below its top. That relied on the room below a document's last line, which #7438 removed by the maintainer's choice ("a document ends at its last line"). Without it, the page with Summary open fits the 720px window, so the browser clamps scrollY to 0 and the strip comes down with the header. This is the case #7438's description names: a block that shrinks near the page's end moves what stands above it down.

This keeps #7438's intent and updates the expectation it replaced:

  • The stuck-strip start (a never-read view opens at its start under the stuck strip) is now checked on Plan, which is taller than the window, switched to from Evidence read at 450px.
  • Summary is now expected to show the page's end (scrollY equals scrollHeight - innerHeight, floored at 0), with #release-summary wholly on screen.
  • The rest of the journey (Evidence reopening where it was read, keyboard walk, Back/Forward, reveal, reload, resize) is unchanged.

The lf-tabs.js header, which promised the strip always stays where it is, now names the short-view case. No runtime or CSS changes.

The journey fails by node id on main (assert 0 < 0, at Summary) and passes with this change in Chromium, which is the only engine it runs in.

Closes #7529 — automated triage

…tuck strip

Since #7438 a document ends at its last line, so switching a stuck
page-flow tab set to a view shorter than the window can no longer keep
the strip at the window's top: the browser scrolls no further than the
page's end. The tabs journey still asserted the room #7438 removed.

The journey now checks the stuck-strip start on Plan, which is taller
than the window, and that the short Summary view shows the page's end
with the view whole on screen. The lf-tabs header states the short-view
case. Behavior change (from #7438, not this commit): switching to a
view too short to fill the window under the stuck strip carries the
page to its end instead of holding the strip still.

Closes #7529
@leaf-agent
leaf-agent merged commit 6b6cd85 into main Nov 28, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7529 branch November 28, 2026 17:27
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_root_tabs_switch_views_without_moving_the_strip_and_follow_history: the page no longer scrolls since #7438

1 participant