Skip to content

test: update six browser tests to the controls #5118 rebuilt by role - #5628

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5473
Nov 7, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5118 ("Build every press by a role") turned seven browser tests red on main. Six still fail on main, and each one was expecting a shape that #5118 deliberately replaced. This PR updates those six tests to the shapes #5118 introduced and changes no runtime behaviour. The seventh, test_an_inline_contribution_name_needs_no_physical_margin, passes on current main, both locally and in push run 42320062138.

Test What #5118 changed Repair
test_s_aims_at_the_addressable_element_named_by_its_hint The command reference is a listbox. A section heading is aria-hidden, and it names a group around each option. Look up the group named "In the target picker" instead of a heading.
test_stylesheet_motion_inputs_drive_css_and_web_animations A margin entry's face class, which carries the agent-arrival animation, is lf-margin-face. lf-margin-entry is left as the script hook. The synthetic arrival is built on lf-margin-face.
test_on_me_s_tabs_stand_where_a_view_names_itself The tab strip's inline padding and negative margin now reserve room for the tabs' focus ring, so the strip's box starts 5px before the tabs. Measure the first tab, which still starts exactly at the controls' content edge.
test_a_finger_s_taller_grip_… (renamed test_a_grip_taller_than_its_title_…) The grip is a symbol: its face is 28px tall at every pointer, and under touch its reach comes from the ::after, not from its box. The premise is now "the grip is taller than the title" rather than "44px". The assertions that the blocks clear the grip are unchanged. The board.css comment is updated to match.
test_diagnostics_arrival_inside_sample_stays_in_child_document, test_sample_diagnostics_copy_failure_keeps_a_visible_manual_copy_route The tab strip's block reach grew from max(0px, …) to at least the focus ring's room. The child sample gets room for the menu (MENU_ROOM).

On the last row: a sample's frame takes its child page's height, so these child pages were 222px tall. In both 0888ab9da^ and current main, the menu opened inside that frame has a 14px view, and the About this page row sits below the window. Before #5118, Playwright still managed to land a click on the row after scrolling it into view. With the strip's larger reach, the strip now takes that click. The cramped menu inside a short sample is older than #5118. This PR doesn't change it.

Verification. All six fail on main at 903e1d106. With this change, those six and the inline-name test pass (uv run pytest --run-main -n2 over the seven node ids, 8 passed counting both parametrizations of the inline test).

Closes #5473 — automated triage

#5118 made the command reference a listbox whose section headings name
groups, moved a margin entry's face (and its arrival animation) to
lf-margin-face, gave On me's tab strip room for its tabs' focus ring, and
made the board grip a 28px symbol whose touch reach is its ::after. Six
browser tests still read the shapes it replaced; each now reads the
current one. The two sample-diagnostics tests give the child page room for
the leaf's menu, since the tab strip's wider reach now takes the click on
a row the 222px frame left out of view. No runtime behaviour changes.

Closes #5473
@leaf-agent
leaf-agent merged commit 34195d2 into main Nov 7, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5473 branch November 7, 2026 08:32
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.

Seven browser tests fail on main since #5118 built every press by a role

1 participant