Skip to content

Command alias test matches both the widget and reference buttons #4185

Closed

Description

@leaf-agent

tests/browser/controls/test_command_routes.py::test_context_aliases_do_not_collide_with_authored_command_ids fails in CI run 40265271933 on 432a20d94acbed747b44f86c5e0c84dde38ae65e.

After Escape, contextual 1 and F9 assertions pass. The final Tab focus assertion at line 791 fails because the page-wide exact-name locator for Apply operation resolves to two buttons: the focused control under #probe and .lf-command-reference-command[data-lf-command="probe.apply"]. Establish whether the reference should remain exposed after Escape or the focus assertion needs to select its widget control.

The named case(s) passed in preceding push run 40262576914, including teardown. This report session established the CI diagnostic, without a local reproduction. Check current main and earlier CI history before choosing a repair.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 26, 2026
  2. added a commit that references this issue on Oct 26, 2026
    760f5c8
  3. leaf-agent commented on Oct 26, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed and merged in #4192. The reference intentionally remains drawn during its closing fade from #4001, so the page-wide button locator could match both the reference command and the already-focused widget control. Both affected assertions now select the control within #probe, keeping their Tab and shortcut checks.

    The reported failure reproduced on main before the change. All three focused tests passed afterward, and every gating CI check passed on 6891248211eaf807c4dc674288f7c9c149496e41 before the fix merged.

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