Skip to content

fix: establish the reading position after resizing the resume test - #4692

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4670
Oct 29, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The Resume writing test scrolled to its return destination before resizing. With the keyboard-only setup introduced in #4270, Chromium's resize returned the viewport to the still-focused disclosure summary. Resume therefore had no departure to record, and Back left the document instead of returning to “Elsewhere.”

Resize before establishing the reading position, and assert that destination is visible before resuming. This keeps the draft open as #4270 intended and preserves the assertions for panel clearance, caret, words and Back navigation. No product behavior changes.

The original [False] case failed locally with the reported missing-element error. Diagnostic reads showed scrollY: 71 before and after Resume, with the same single navigation entry. Both variants pass after the setup correction, at normal speed and with 6× CPU throttling.

Closes #4670 — automated triage

The keyboard-only setup introduced in #4270 keeps the draft open, but resizing after scrolling can return Chrome to the focused summary. Resume then correctly adds no travel entry and Back leaves the document. Resize first, then establish and assert the outgoing reading position. This preserves both the open draft and the Back-navigation contract.

Closes #4670
@leaf-agent
leaf-agent merged commit 05815e3 into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4670 branch October 29, 2026 12:09
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.

Resume writing Back navigation loses the previous reading destination

1 participant