Skip to content

[iOS26]Fix BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate UITest fails#34850

Closed
devanathan-vaithiyanathan wants to merge 0 commit intodotnet:mainfrom
devanathan-vaithiyanathan:fix-34771
Closed

[iOS26]Fix BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate UITest fails#34850
devanathan-vaithiyanathan wants to merge 0 commit intodotnet:mainfrom
devanathan-vaithiyanathan:fix-34771

Conversation

@devanathan-vaithiyanathan
Copy link
Copy Markdown
Contributor

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Apr 7, 2026

Issue Details

In the issue, mentioned two tests are failed

  • BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate
  • BackButtonBehavior_IsVisible_False_ProgrammaticNavStillWorks

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.

  • Android
  • Windows
  • iOS
  • Mac
Before After
iOS
Before.mov
iOS
After.mov

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Apr 7, 2026
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman added platform/ios area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution version/iOS-26 labels Apr 7, 2026
@sheiksyedm sheiksyedm marked this pull request as ready for review April 7, 2026 14:32
@sheiksyedm
Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@devanathan-vaithiyanathan devanathan-vaithiyanathan changed the base branch from inflight/current to inflight/candidate April 8, 2026 06:11
@devanathan-vaithiyanathan devanathan-vaithiyanathan changed the base branch from inflight/candidate to inflight/current April 8, 2026 06:11
@devanathan-vaithiyanathan devanathan-vaithiyanathan marked this pull request as draft April 8, 2026 07:00
@devanathan-vaithiyanathan devanathan-vaithiyanathan changed the base branch from inflight/current to main April 9, 2026 05:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34850

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34850"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios version/iOS-26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS 26] BackButtonBehavior_IsEnabled_False_BackButtonDoesNotNavigate test fails with TimeoutException

3 participants