You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two aim and render-gate tests fail on main since #5506 named unnamed elements by their own words #5645
Since #5506 (447511d0f, "keep main's heading from naming every unnamed element on the page"), two browser tests fail on main. Run locally, each fails at 447511d0f and passes at its parent 803f36a6a. Both still fail on main 903e1d106. The first failing push run is 42074354782 at 16cb9ebb4, and they still fail in 42320062138. git bisect run over f8808301f..16cb9ebb4 on the first test landed on 447511d0f.
tests/browser/test_render_aim.py::test_design_mode_reads_each_shape_of_control_into_the_anchor_its_routes_carry (subtest a control's name is its own):
strict mode violation: get_by_role("button", name="First choice") resolved to 2 elements:
1) <button … class="lf-projected-mark">First choice</button>
2) <button … class="lf-response-face lf-fab-rest lf-ui lf-ui-face" aria-label="Comment on div · First choice Middle choice Last choice">
#5506 stopped addressableLabel from climbing to main's leading heading, so an unnamed element is named by its own words again. In the second test, that makes the name of #5428's resting comment box (.lf-fab-rest) contain its target's words, so an inexact role query matches it too. test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place hits the same strict-mode collision on "After diff" (#5641). In the first, a control's label now carries the section's name and its close glyph ×. Neither expectation looks like something #5506 meant to change: one test may need exact=True, while the × inside a design-mode label may be a naming regression.
test_render_gate.py::test_scrollbar_clearance_reads_generic_content_and_open_shadow_words: this already passes on bdc4c03b0 with no change. That fits fix: rest the comment box only in the rail's margin, not over the column #5662: the resting comment box no longer stands beside a target that ends short of the column's edge, so its aria-label stops colliding with the First choice query.
test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place is still tracked in #5641.
Activity
leaf-agent commentedon Nov 7, 2026
#5666 fixes the aim test and should close this issue. Its CI went green at
a8575f4a8, and atend-landrun is merging it now.test_render_aim.py(a control's name is its own): the test was wrong, not fix: keep main's heading from naming every unnamed element on the page #5506. Thespokensection had no heading. Itssection:context came frommain's<h1>Settings</h1>, which is the climb fix: keep main's heading from naming every unnamed element on the page #5506 deliberately stopped. With that climb gone, the section is named by its own words,Find settings ×, so the×comes from the section's name and not from the field's. The test this case came from (b91b966) gave the section its own<h2>, and Merge or remove 230 duplicate test functions, and leave Copy's press to Copy #5409 dropped that heading when it merged the case intoCONTROL_SHAPES. test: give the aim test's spoken-control section its own heading #5666 restores a heading. Naming doesn't change. The test fails on mainbdc4c03b0and passes with the change.test_render_gate.py::test_scrollbar_clearance_reads_generic_content_and_open_shadow_words: this already passes onbdc4c03b0with no change. That fits fix: rest the comment box only in the rail's margin, not over the column #5662: the resting comment box no longer stands beside a target that ends short of the column's edge, so itsaria-labelstops colliding with theFirst choicequery.test_an_expanded_diff_file_can_retry_its_failed_chunk_in_placeis still tracked in #5641.