Skip to content

[ci-scan-net11] Issue33287.DisplayAlertAsyncShouldNotCrashWhenPageUnloaded consistently times out on MacCatalyst (net11.0) #36554

Description

@github-actions

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

  1. 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.
  2. Check whether the DisplayAlert dialog is being presented asynchronously and the page unload races with the alert dismiss on MacCatalyst.
  3. Run locally on MacCatalyst to confirm the element that is waited on (WaitForElement) is never rendered or is rendered under a different accessibility id.
  4. 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 ·

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-scan-net11CI scanner findings for net11.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions