Repository navigation
test: match the command reference's Search page and Select mode rows by a name that starts with their title - #7519
Merged
Merged
Conversation
…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
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_slash_finds_page_text_without_a_target_kindhas 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 namedSearch 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\band^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 withunexpected 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