Repository navigation
test(a11y): Stop two Android accessibility tests racing their setup - #26000
MartinZikmund merged 3 commits into
Conversation
When_Primary_Root_Changes_Then_Event_Is_Routed_To_That_Root read the records right after WaitForIdle, which can return before the Android adapter's main-looper message records the event: it now polls, as 8517508 made its siblings do. When_Virtual_Peers_Share_An_Owner_Then_They_Keep_Distinct_Ids_And_Actions gave its peers fixed window bounds and hit-tested fixed window points, near the top-left, over the test runner's own nodes rather than the host. The peers' bounds and the hit points now follow the host. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243430 found UI Test snapshots differences: Details
|
The test still misses on CI, returning another node, and passes on a local emulator, so its assertions now report the XAML elements and accessibility nodes under the point, the open popups and the bridge's tree summary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
The diagnostic showed the miss on CI: the XAML elements under the point were the runner's Frame and content presenters, not the host, which has no background. The native hit test walks up from the element it hits, so it returned the runner's content presenter node before reaching the host's peers. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243626 found UI Test snapshots differences: Details
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243770 found UI Test snapshots differences: Details
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
GitHub Issue: part of #9080 (flaky tests roundup)
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Two Android accessibility runtime tests failed intermittently on the Android Skia lanes (both renderers). Test-only changes.
Given_MobileMultiWindowAccessibility.When_Primary_Root_Changes_Then_Event_Is_Routed_To_That_Root(10 of the last 30 master builds)It read the records right after
WaitForIdle. The Android adapter records most events from a synchronous main-looper message that the view system's sync barriers can hold back, while the dispatcher's asynchronous messages skip them, soWaitForIdlecan return before the record exists. 8517508 fixed the same race inGiven_MobileAccessibilityEvents_AndroidandGiven_MobileAccessibilityLifecycle_US7(which have not failed since); this test lives in another class and kept the old pattern. It now polls for the record, with the same 5 s budget.Given_SkiaAndroidAccessibilityNode.When_Virtual_Peers_Share_An_Owner_Then_They_Keep_Distinct_Ids_And_Actions(4 builds)The native hit test (
UnoExploreByTouchHelper.GetVirtualViewAt) starts at the XAML element under the point and walks up to the first element with an accessibility node, checking that element's virtual peers on the way. The test's host is aGridwithout a background, so it is not hit-testable. A diagnostic added to the assertion (kept in the test) showed the miss on CI: the elements under the point were the runner'sFrame, ContentPresenter, ContentPresenter, and the hit returned the runner's content presenter node (android.view.ViewGroup @0,80,1280,688) before ever reaching the host's peers. On the local emulator nothing accessible sat above the host, so the fallback scan found the peers and the test passed.TransformToVisual(null)) instead of fixed window coordinates near the top-left.Validation
On the Android emulator (API 34), retries off:
When_Primary_Root_Changes_Then_Event_Is_Routed_To_That_Root: master failed within 20 iterations; with this change, 20/20 pass.When_Virtual_Peers_Share_An_Owner_Then_They_Keep_Distinct_Ids_And_Actions: 20/20 pass with this change. Its failure did not reproduce locally (nor with the five-test sequence of the failing CI shard), so the CI Android lanes are the real check for this one. An earlier version of this PR only moved the hit points; CI then hit the runner's content presenter (node 12), which the diagnostic identified.Given_SkiaAndroidAccessibilityNode,Given_MobileMultiWindowAccessibilityandGiven_MobileAccessibilityEvents_Android: 64/65 pass. The failure,When_Overlapping_Elements_Are_HitTested_Then_Highest_ZIndex_Wins, is untouched and fails the same way on master locally; it does not fail on CI.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code