Repository navigation
test: expect detached draft to remain visible after revision - #2207
Merged
Merged
Conversation
The editor now remains available in the unanchored window posture when a revision removes its passage. Update the old expectation while retaining checks that the rewritten passage stays unmarked and the draft returns with its original passage. Closes #2205
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 detached draft behavior introduced by #2159 keeps an open editor available when a new revision removes its passage. The older browser test still expected the editor to close, so main's nightly test failed. This updates the test to require the draft and its original quote to remain visible while the rewritten passage has no pending mark; it also keeps the check that the draft returns to its passage when that version is reopened. The test failed on main before this change and passes with the corrected expectation.
Verified with
uv run pytest -q tests/test_render_outbox.py::test_a_draft_that_outlives_its_passage_returns_with_that_passage -x -n0.Closes #2205 — automated triage