Skip to content

test: match the command reference's Search page and Select mode rows by a name that starts with their title - #7519

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7518
Nov 28, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_slash_finds_page_text_without_a_target_kind has failed on main since #7491 (e12a31745). That change made each command reference row take its accessible name from every word it shows (title, keys and description) so the rows pass axe-core's Label in Name rule, and the Search page row is now named Search page /. The test still expected the bare title, and #7491 updated the other tests that read row names but missed this one. The test now matches a name that starts with the title, ^Search page\b and ^Select mode\b, as #7491 did for the rows it renamed. It still checks the key (/, s) and the missing description separately. No product behavior changes.

Verification: on current main (afb9b9df1) the test fails with unexpected value "Search page /". With this change it passes (uv run pytest tests/browser/test_render_semantic_selection.py::test_slash_finds_page_text_without_a_target_kind -n0).

Refs #7518 — automated triage

…by a name that starts with their title

#7491 named each command reference row by all the words it shows (title, keys, description) to pass axe-core's Label in Name rule, so the Search page row is now named "Search page /". `test_slash_finds_page_text_without_a_target_kind` still expected the bare title and failed on main from `e12a31745` onward. It now matches a name that starts with the title, as #7491 did for the other rows it renamed; the key and the absent description stay checked separately. No product behavior changes.

Refs #7518
@leaf-agent
leaf-agent merged commit ad7b71b into main Nov 28, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7518 branch November 28, 2026 09:44
This was referenced Nov 28, 2026
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.

1 participant