Summary
Issue33287.DisplayAlertAsyncShouldNotCrashWhenPageUnloaded consistently fails on MacCatalyst in maui-pr-uitests with System.TimeoutException: Timed out waiting for element. The failure persists through retries (2 of 2 attempts fail) indicating this is not a transient flake.
Build Information
- Pipeline: maui-pr-uitests
- Build: 1498914
- Build ID: 1498914
- Branch: net11.0
- First seen: 2026-07-07 (build 1496867)
- Occurrences: 2 in last 10 builds (builds 1496867 and 1498914), both with persistent retry failure
Affected Legs
Controls (MacCatalyst) — catalyst.cake — MacCatalyst 15.3 — TestCategory=Page|Picker
Controls (MacCatalyst) — catalyst.cake — MacCatalyst 15.3 (retry run)
Error Message
Failed DisplayAlertAsyncShouldNotCrashWhenPageUnloaded [33 s]
Error Message:
System.TimeoutException : Timed out waiting for element...
Stack Trace:
at UITest.Appium.HelperExtensions.WaitForElement(...)
at Microsoft.Maui.TestCases.Tests.Issues.Issue33287.DisplayAlertAsyncShouldNotCrashWhenPageUnloaded()
in src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33287.cs:line 28
Recommended Action
- Inspect
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33287.cs — the test calls DisplayAlertAsync then unloads the page and waits for a UI element that never appears.
- Check whether the
DisplayAlert dialog is being presented asynchronously and the page unload races with the alert dismiss on MacCatalyst.
- Run locally on MacCatalyst to confirm the element that is waited on (
WaitForElement) is never rendered or is rendered under a different accessibility id.
- If this is a test design issue (timing too tight on Mac), consider adding a platform-specific timeout or a
Task.Delay guard. If it is a real regression in DisplayAlertAsync, add a fix to src/Controls/src/Core/Page.cs or the MacCatalyst handler.
Generated by CI Failure Scanner (net11.0)
Generated by CI Failure Scanner (net11.0) · 481.6 AIC · ⌖ 6.64 AIC · ⊞ 8.8K · ◷
Summary
Issue33287.DisplayAlertAsyncShouldNotCrashWhenPageUnloadedconsistently fails on MacCatalyst inmaui-pr-uitestswithSystem.TimeoutException: Timed out waiting for element. The failure persists through retries (2 of 2 attempts fail) indicating this is not a transient flake.Build Information
Affected Legs
Controls (MacCatalyst)—catalyst.cake— MacCatalyst 15.3 — TestCategory=Page|PickerControls (MacCatalyst)—catalyst.cake— MacCatalyst 15.3 (retry run)Error Message
Recommended Action
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33287.cs— the test callsDisplayAlertAsyncthen unloads the page and waits for a UI element that never appears.DisplayAlertdialog is being presented asynchronously and the page unload races with the alert dismiss on MacCatalyst.WaitForElement) is never rendered or is rendered under a different accessibility id.Task.Delayguard. If it is a real regression inDisplayAlertAsync, add a fix tosrc/Controls/src/Core/Page.csor the MacCatalyst handler.