Skip to content

test: give the aim test's spoken-control section its own heading - #5666

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5645
Nov 7, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_design_mode_reads_each_shape_of_control_into_the_anchor_its_routes_carry has failed on main since #5506. Its "a control's name is its own" subtest asserts that a field's design label carries no neighbouring control's words. The spoken section had no heading, so the label's section: context came from main's leading <h1>Settings</h1>, the climb #5506 deliberately stopped. Since then the unnamed section is named by its own words, Find settings ×, and the close button's × reaches the field's label through the section's name, not the field's.

The test this case came from (test_design_spoken_context_does_not_borrow_a_neighbours_face, added in b91b966) gave the section its own <h2>. #5409 dropped it when it merged the case into CONTROL_SHAPES, and the subtest kept passing only because of the #5228 bug that #5506 fixed. This restores a heading on the section, so the assertion is again about the control's own label, and #5506's naming stays as it is. No product behavior changes, and CONTROL_SHAPES has no other reader.

Verification. The test fails on main bdc4c03b0 with the issue's message and passes with this change (35 subtests).

The issue's second test, test_render_gate.py::test_scrollbar_clearance_reads_generic_content_and_open_shadow_words, already passes on bdc4c03b0 with no change here. That fits #5662, which stopped the resting comment box from standing beside a target that ends short of the column's edge, so the box's aria-label no longer collides with the First choice role query. test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place stays with #5641.

Closes #5645 — automated triage

The "a control's name is its own" subtest checks that a field's design
label borrows no neighbouring control's words. Its section had no
heading, so the label's context came from main's leading <h1> until
#5506 stopped that climb; since then the unnamed section is named by its
own words, the close button's × included, and the assertion fails.

The test this case came from (b91b966) gave the section a heading of
its own, which #5409 dropped when it merged the case into
CONTROL_SHAPES. Restoring a heading keeps the assertion about the
control's own label and #5506's naming as it is. No product behavior
changes.

Closes #5645
@leaf-agent
leaf-agent merged commit 0bfd4aa into main Nov 7, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5645 branch November 7, 2026 14:27
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.

Two aim and render-gate tests fail on main since #5506 named unnamed elements by their own words

1 participant