Skip to content

Fix Android Shell Navigation not properly waiting for end of transaction#26642

Merged
PureWeen merged 2 commits intodotnet:mainfrom
albyrock87:fix-shell-navigation-device-test
Dec 15, 2024
Merged

Fix Android Shell Navigation not properly waiting for end of transaction#26642
PureWeen merged 2 commits intodotnet:mainfrom
albyrock87:fix-shell-navigation-device-test

Conversation

@albyrock87
Copy link
Copy Markdown
Contributor

@albyrock87 albyrock87 commented Dec 15, 2024

Description of Change

Android device test "Can reuse page" (Shell version) is failing on API >=33.

As we can see from the screenshot here, the end of the animation doesn't mean that the transaction has completed.

image

This simple change allows android to complete the last frame properly before engaging a new navigation.
I think this is positive even for animtated: false navigations.

This PR also fixes other randomly failing tests.

Issues Fixed

Fixes often broken device tests.

@albyrock87 albyrock87 requested a review from a team as a code owner December 15, 2024 09:37
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Dec 15, 2024
@PureWeen
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

App.Tap("BackButton");
App.WaitForElement("Login");
App.Tap("Login");
#if ANDROID
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for cleaning this one up!

@PureWeen PureWeen enabled auto-merge (squash) December 15, 2024 20:25
@PureWeen
Copy link
Copy Markdown
Member

  • failing test unrelated

@PureWeen PureWeen disabled auto-merge December 15, 2024 22:17
@PureWeen PureWeen merged commit f249086 into dotnet:main Dec 15, 2024
albyrock87 added a commit to nalu-development/maui-custom that referenced this pull request Dec 16, 2024
…ion (dotnet#26642)

* Fix Android Shell Navigation not properly waiting for end of transaction

* Fixes other random failing tests on Android

(cherry picked from commit f249086)
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Dec 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution fixed-in-net9.0-nightly This may be available in a nightly release!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants