Skip to content

test: expect detached draft to remain visible after revision - #2207

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-2205
Oct 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-2205

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

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
@max-sixty
max-sixty merged commit 7f5c0e0 into main Oct 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-2205 branch October 10, 2026 07:55
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.

ci-fix: Draft composer remains visible after its passage is removed

2 participants