[iOS26]Fix BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate UITest fails#34850
Closed
devanathan-vaithiyanathan wants to merge 0 commit intodotnet:mainfrom
Closed
[iOS26]Fix BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate UITest fails#34850devanathan-vaithiyanathan wants to merge 0 commit intodotnet:mainfrom
devanathan-vaithiyanathan wants to merge 0 commit intodotnet:mainfrom
Conversation
Contributor
|
/azp run maui-pr-uitests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Apr 7, 2026
Open
4ab9e00 to
0bd4d56
Compare
1e2555e to
2f4680f
Compare
2f4680f to
63d534a
Compare
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34850Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34850" |
4 tasks
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.
Issue Details
In the issue, mentioned two tests are failed
BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate
The test failed due to PR #28734. The PR included a fix for the BackButton IsEnabled issue, but it resolves the issue on iOS 18, not on iOS 26. Further improvements are needed for iOS26, which was added in the PR.
Root Cause
On iOS 26, the Shell back button test failed because tapping the back button while BackButtonBehavior.IsEnabled was false left the Shell renderer in a pending back-navigation state. After the button was enabled again, the next back tap was still blocked, which caused the test to time out instead of returning to the main page.
Description of Change
The fix clears the pending back-navigation flag when a disabled back tap is ignored, so back navigation works correctly once the button is re-enabled.
BackButtonBehavior_IsVisible_False_ProgrammaticNavStillWorks
Above test fail related to base snapshot, which was addressed in PR #34617
Issues Fixed
Fixes #34771
Tested the behavior in the following platforms.
Before.mov
After.mov