Skip to content

fix: scope command focus assertions to their widget - #4192

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4185
Oct 26, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The command reference intentionally stays drawn during its closing fade (#4001). Both keyboard-route tests used a page-wide Apply operation button locator, which can match the reference command as well as the widget control after focus has returned. Scope those assertions to #probe, preserving the Tab focus and subsequent shortcut execution checks without waiting for the fade.

Reproduced the reported strict-locator failure on current main. With this change, the alias-collision test, contextual Escape test, and modal reference Tab/return test all pass (3 passed). The preceding run's artifact also confirms the reported test passed there, consistent with the locator depending on whether the fade had finished.

Closes #4185 — automated triage

The command reference intentionally remains drawn during its closing fade (#4001), so a page-wide button name can match both its command and the widget control. Select the widget control in both affected tests while keeping the Tab focus and command execution assertions.

Closes #4185
@leaf-agent
leaf-agent merged commit 760f5c8 into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4185 branch October 26, 2026 05:26
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.

Command alias test matches both the widget and reference buttons

1 participant