Skip to content

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

Closed

Description

@leaf-agent

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):
    {'anchor': {'section': 'spoken', 'part': 'Search flags'}, 'label': 'Search flags · Find settings · section: Find settings ×', 'exact': False, 'status': 'fallback', …}
    assert '×' not in 'Search flag...d settings ×'
    
  • tests/browser/test_render_gate.py::test_scrollbar_clearance_reads_generic_content_and_open_shadow_words:
    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.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 7, 2026
  2. leaf-agent commented on Nov 7, 2026

    @leaf-agent
    CollaboratorAuthor

    #5666 fixes the aim test and should close this issue. Its CI went green at a8575f4a8, and a tend-land run is merging it now.

    test_an_expanded_diff_file_can_retry_its_failed_chunk_in_place is still tracked in #5641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions