Skip to content

test: match the Go-to announcement at any depth when the render gate settles a round trip - #5451

Merged
max-sixty merged 1 commit into
mainfrom
fix/render-gate-live-region-filter
Nov 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/render-gate-live-region-filter

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

surface_findings (render gate, closed surfaces) removes the live region's last announcement from each round trip's reading before comparing trips. It does this because a panel can mark a message read after Go-to announces its routes, which changes the routes Go-to speaks next. Since #5439, reader_state snapshots :root, which nests the live region's text one level deeper than the region's own aria_snapshot. The exact-line match never found the announcement, so on current main test_page_fixture_renders[ship-review] fails with the on me view closed again leaving. The only difference between the two lines is the u first unread route. The match now ignores indentation and still removes one reading line per announced line.

tests/journeys/test_render_gate.py::test_page_fixture_renders[ship-review] (with --run-nightly) fails on main e0c0f9c5f and passes with this change.

Refs #4225 — automated triage

…settles a round trip

surface_findings drops the live region's last announcement from each
round trip's reading, since a panel can mark a message read after Go-to
announces its routes and so change the routes it speaks next. Since
#5439 the reading is a snapshot of :root, which nests the live region's
text one level deeper than the region's own snapshot. The exact-line
match then never found it, and ship-review's On me round trip failed on
the dropped "u first unread" route. The match now ignores indentation.

Refs #4225
@max-sixty
max-sixty merged commit 626d493 into main Nov 5, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/render-gate-live-region-filter branch November 5, 2026 09:27
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.

2 participants