Repository navigation
test: read the comment boxes' focus ring from their ::after - #6840
Merged
Merged
Conversation
#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
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.
#6800 moved the focus ring of the panel's field and of a card's reply box from the box's own
outlineonto 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, foundoutline: none, and have failed onmainsince (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_fieldsandtest_threads.py::test_forced_colors_keep_inline_thread_focus_visible: in forced colours the::afterstill draws a real outline (solid 2pxon 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 currentmainlocally ({'style': 'none', 'width': '3px'}), matching the CI failures for the other three; all four pass on this branch.Closes #6835 — automated triage