Skip to content

fix: isolate failed-save panel test from revision layout changes - #4160

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4159
Oct 25, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The failed-save panel test borrowed a reading-continuity fixture that inserts five paragraphs. #4124 deliberately keeps a page read from its top at the top, so adopting that fixture's valid revision moves the old paragraphs down 608.75px. The original test reproduces that shift on main and passes with the previous reading-place module.

Use a small text-only revision for the panel's error/recovery journey. The test now also asserts that an invalid save leaves the last valid content displayed and that the next valid save replaces it. Its error status, Errors menu count, Versions diagnostic, and shift watching remain covered. No runtime behavior changes.

The focused test passes normally and at 6× CPU throttling; git diff --check passes. Local Ruff checks could not run because Ruff is not installed; PR CI supplies those checks.

Closes #4159 — automated triage

The test borrowed a reading-continuity fixture that inserts five paragraphs. Since #4124 deliberately keeps a page read from its top at the top, those insertions move the old paragraphs by 608.75px and trigger this unrelated test’s shift watcher. The original case passes with the prior reading-place module and fails with the intentional new behavior.

Use a small text-only revision and assert the last valid content survives the invalid save and changes on the next valid one. The panel error and Versions checks remain covered; shift watching stays enabled. The focused case passes normally and at 6x CPU throttling.

Closes #4159
@leaf-agent
leaf-agent merged commit 612c646 into main Oct 25, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4159 branch October 25, 2026 23:34
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.

Failed-save panel test reports a 609px passive content shift

1 participant