Repository navigation
test: match the Go-to announcement at any depth when the render gate settles a round trip - #5451
Merged
Merged
Conversation
…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
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.
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_statesnapshots:root, which nests the live region's text one level deeper than the region's ownaria_snapshot. The exact-line match never found the announcement, so on current maintest_page_fixture_renders[ship-review]fails withthe on me view closed again leaving. The only difference between the two lines is theu first unreadroute. 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 maine0c0f9c5fand passes with this change.Refs #4225 — automated triage