Repository navigation
fix: identify the margin surface in refused reply checks - #4687
Conversation
The refusal test permits the card to give a refused turn its room back, as chosen in #4183. Its diagnostic matcher still named the aside, while the shared box motion introduced in #4379 reports the card ground. Match that surface without widening the accepted movement to unrelated elements. The margin reproduction failed before this change and passes after it; draft, retry and card-bound checks remain in place. Closes #4460
leaf-agent
left a comment
There was a problem hiding this comment.
The red CI result does not invalidate this repair. Its margin case passed, and the only failing cases were outlet and nested-end, both failing in pose() before reaching the changed matcher because no action button was visible. I reproduced the outlet failure and its 12px editor-shift diagnostic on unchanged current main (e43fc34fa79fcd4c50a049c3d786d8c094d2e769). The margin and panel cases pass locally on this PR's head (2 passed).
The test-only diff preserves the permitted card movement and the draft/retry assertions, replacing the obsolete enclosing-aside reference with the actual ground surface. Under the repository's CI-repair landing policy, the unrelated terminal failures do not block this fix; they remain with the main-suite failure tracking in #4225.
The refused-reply test now recognizes the margin card's ground surface in shift diagnostics. #4183 deliberately let a refused turn give its room back; the shared box motion in #4379 reports that movement beside
div.lf-box-ground.lf-margin-preview-ground, while this test still matched the enclosingaside. This updates that reference without changing the runtime or adding another accepted surface.The margin case fails before the change and passes after it, including whole draft text, card bounds, retry identity and exactly one admitted reply. The panel case also passes. Ruff check and format check pass.
The outlet and nested-end cases fail on both unchanged main (
cf15e623131b432e234cf80c6d9ed0e1c3ba367f) and the candidate:pose()cannot find a visible action button and dereferencesundefined; teardown also reports shifts. Those failures are separate from the margin diagnostic repaired here.Closes #4460 — automated triage