Skip to content

test: read the comment boxes' focus ring from their ::after - #6840

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6835
Nov 23, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6800 moved the focus ring of the panel's field and of a card's reply box from the box's own outline onto its ::after, so the ring paints over Send and over an error about the box. Four browser tests still read the ring from the box's outline, found outline: none, and have failed on main since (first in run 45104895190). Each now reads the ::after, and keeps protecting the same behaviour:

  • test_rings.py::test_forced_colors_restore_a_real_outline_to_shadow_focused_fields and test_threads.py::test_forced_colors_keep_inline_thread_focus_visible: in forced colours the ::after still draws a real outline (solid 2px on the seated card's reply).
  • test_card_reply.py::test_a_growing_margin_reply_keeps_its_whole_ring_from_the_first_frame: samples the ring's colour from the ::after.
  • test_card_reply.py::test_a_margin_reply_with_a_pasted_image_keeps_its_editor_and_attachment_visible: the shelf's clearance counts the ::after's inset (-1px) along with the ring's width and offset.

No product code changes. test_rings.py's test fails on current main locally ({'style': 'none', 'width': '3px'}), matching the CI failures for the other three; all four pass on this branch.

Closes #6835 — automated triage

#6800 moved the panel field's and a card reply's focus ring from the box's own outline onto its ::after, so it paints over Send and an error about the box. Four tests still read the ring from the box's outline and failed. Each now reads the ::after: the forced-colours tests check that its outline is still drawn, the growth test samples the ring's colour from it, and the pasted-image test counts its inset with the ring's width and offset when measuring the shelf's clearance. The behaviours they protect are unchanged.

Closes #6835
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.

Four focus-ring tests read the comment box's outline, which #6800 moved onto ::after

1 participant