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"

kubaflo pushed a commit that referenced this pull request Apr 20, 2026
…te UITest fails (#34890)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### 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**

<!-- Enter description of the fix in this section -->

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

Note : 
Existing PR #34850  was closed due to some conflicts issue 


### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #34771 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [ ] Android
- [ ] Windows
- [x] iOS
- [ ] Mac


| Before  | After  |
|---------|--------|
| **iOS**<br> <video
src="https://github.com/user-attachments/assets/e2634737-0c08-4f4b-a93e-51a2ec03a7e5"
width="300" height="600"> | **iOS**<br> <video
src="https://github.com/user-attachments/assets/4e75a218-91c2-4951-b4fb-241ec2de2aac"
width="300" height="600"> |
PureWeen pushed a commit that referenced this pull request Apr 22, 2026
…te UITest fails (#34890)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### 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**

<!-- Enter description of the fix in this section -->

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

Note : 
Existing PR #34850  was closed due to some conflicts issue 


### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #34771 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [ ] Android
- [ ] Windows
- [x] iOS
- [ ] Mac


| Before  | After  |
|---------|--------|
| **iOS**<br> <video
src="https://github.com/user-attachments/assets/e2634737-0c08-4f4b-a93e-51a2ec03a7e5"
width="300" height="600"> | **iOS**<br> <video
src="https://github.com/user-attachments/assets/4e75a218-91c2-4951-b4fb-241ec2de2aac"
width="300" height="600"> |
PureWeen pushed a commit that referenced this pull request Apr 28, 2026
…te UITest fails (#34890)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### 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**

<!-- Enter description of the fix in this section -->

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

Note : 
Existing PR #34850  was closed due to some conflicts issue 


### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #34771 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [ ] Android
- [ ] Windows
- [x] iOS
- [ ] Mac


| Before  | After  |
|---------|--------|
| **iOS**<br> <video
src="https://github.com/user-attachments/assets/e2634737-0c08-4f4b-a93e-51a2ec03a7e5"
width="300" height="600"> | **iOS**<br> <video
src="https://github.com/user-attachments/assets/4e75a218-91c2-4951-b4fb-241ec2de2aac"
width="300" height="600"> |
PureWeen pushed a commit that referenced this pull request Apr 29, 2026
…te UITest fails (#34890)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### 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**

<!-- Enter description of the fix in this section -->

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

Note : 
Existing PR #34850  was closed due to some conflicts issue 


### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #34771 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [ ] Android
- [ ] Windows
- [x] iOS
- [ ] Mac


| Before  | After  |
|---------|--------|
| **iOS**<br> <video
src="https://github.com/user-attachments/assets/e2634737-0c08-4f4b-a93e-51a2ec03a7e5"
width="300" height="600"> | **iOS**<br> <video
src="https://github.com/user-attachments/assets/4e75a218-91c2-4951-b4fb-241ec2de2aac"
width="300" height="600"> |
github-actions Bot pushed a commit that referenced this pull request May 6, 2026
…te UITest fails (#34890)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### 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**

<!-- Enter description of the fix in this section -->

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

Note : 
Existing PR #34850  was closed due to some conflicts issue 


### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #34771 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [ ] Android
- [ ] Windows
- [x] iOS
- [ ] Mac


| Before  | After  |
|---------|--------|
| **iOS**<br> <video
src="https://github.com/user-attachments/assets/e2634737-0c08-4f4b-a93e-51a2ec03a7e5"
width="300" height="600"> | **iOS**<br> <video
src="https://github.com/user-attachments/assets/4e75a218-91c2-4951-b4fb-241ec2de2aac"
width="300" height="600"> |
@github-actions github-actions Bot locked and limited conversation to collaborators May 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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