Repository navigation
fix: isolate failed-save panel test from revision layout changes - #4160
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --checkpasses. Local Ruff checks could not run because Ruff is not installed; PR CI supplies those checks.Closes #4159 — automated triage