Repository navigation
Conversation
Use the accessibility ID for the back button exposed after PushAsync. Invoke the alert when the page loses its parent, before handler disconnection, and wait for unloading and alert completion instead of fixed delays. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:31 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38539Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38539" |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:32 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:33 — with
GitHub Actions
Inactive
Contributor
Author
|
/azp run maui-pr-uitests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:38 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:38 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 14, 2026 22:39 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The UI lifecycle synchronization changes require final human review.
Pull request overview
This test-only pull request stabilizes the unloaded-page alert UI regression test by synchronizing navigation, unloading, alert completion, and assertions.
Changes:
- Uses accessibility-ID lookup for the late-created back button.
- Replaces timer-based alert invocation with lifecycle synchronization.
- Adds explicit completion and responsiveness assertions.
File summaries
| File | Description |
|---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue33287.cs |
Improves navigation and completion assertions. |
src/Controls/tests/TestCases.HostApp/Issues/Issue33287.cs |
Coordinates unloaded-page alert testing and completion reporting. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
This was referenced Sep 15, 2026
Contributor
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Summary
Fix
DisplayAlertAsyncShouldNotCrashWhenPageUnloadedin the Android Page/Performance/Picker/ProgressBar check onrelease/10.0.1xx-sr11. Only the regression fixture and its UI test change; no framework behavior, retries, or timeouts change.Root cause
The reported check in build 1596434 fails at the wait for
GoBackButton, including the retry (test runs 44070846 and 44071672).There are two coupled test defects:
AutomationIdafterPushAsynccompletes. On Android that late assignment exposescontent-desc="GoBackButton", but the button has no matchingresource-id. The test's string locator searches by resource ID and cannot find it. A local run with the timer removed confirmed this exact hierarchy.OnAppearingtimer can display the alert before Appium navigates back. The CI failure attachment showsTest Alertcovering the page, so the intended detached-page scenario never executes.Picker_TapPicker_TakeScreenshotandPicker_SetShadow_VerifyShadowalso failed on the first attempt of the linked job, but both passed its retry. They are not changed here.Fix
Unloadedevent, and the alert task; assert that the page is detached/unloaded and publish an explicit completion result.This preserves the earlier push-transition fix while removing the remaining timing and locator failures. No open PR addressing #33287 was found before implementing this follow-up.
Validation
GoBackButtontimeout locally on Android API 30.Related to #33287, #33288, and #38381.