Skip to content

[Testing] Fixed Test case failure in net10 branch - 2#32224

Merged
rmarinho merged 1 commit intodotnet:net10.0from
TamilarasanSF4853:fix-main-flaky-uitest-4
Oct 28, 2025
Merged

[Testing] Fixed Test case failure in net10 branch - 2#32224
rmarinho merged 1 commit intodotnet:net10.0from
TamilarasanSF4853:fix-main-flaky-uitest-4

Conversation

@TamilarasanSF4853
Copy link
Contributor

@TamilarasanSF4853 TamilarasanSF4853 commented Oct 27, 2025

This PR addresses the UI test image failures that occurred in the net10 branch #32110 and includes updates to improve rendering and test stability across platforms.

  • Resaved snapshots for the VerifyModelItemsObservableCollectionWhenMultipleModePreSelection test case due to an incorrect image being added in this PR, caused by a conflict: ce6f0a7#diff-aa743681531cd727be3740b8d32e056133886d86ecbee62ba26c80bb1f021d6c
  • In the ToolbarExtendsAllTheWayLeftAndRight_Shell, ToolbarExtendsAllTheWayLeftAndRight_NavigationPage, and ToolbarExtendsAllTheWayLeftAndRight_FlyoutPage test cases, added cropLeft to crop out the navigation bar that appears in landscape mode.

Test cases:

  • VerifyModelItemsObservableCollectionWhenMultipleModePreSelection
  • ToolbarExtendsAllTheWayLeftAndRight_Shell
  • ToolbarExtendsAllTheWayLeftAndRight_NavigationPage
  • ToolbarExtendsAllTheWayLeftAndRight_FlyoutPage

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 27, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Oct 27, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@TamilarasanSF4853 TamilarasanSF4853 marked this pull request as ready for review October 27, 2025 11:35
Copilot AI review requested due to automatic review settings October 27, 2025 11:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR resolves UI test image failures in the net10 branch by updating test snapshots and adding platform-specific cropping to accommodate Android's navigation bar in landscape mode.

  • Updated snapshots for VerifyModelItemsObservableCollectionWhenMultipleModePreSelection test due to incorrect image from merge conflict
  • Added Android-specific left cropping (125px) to three toolbar tests to handle navigation bar in landscape orientation

Reviewed Changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 3 comments.

File Description
Issue28986_Shell.cs Added Android-specific left crop to handle navigation bar in landscape mode
Issue28986_NavigationPage.cs Added Android-specific left crop to handle navigation bar in landscape mode
Issue28986_FlyoutPage.cs Added Android-specific left crop to handle navigation bar in landscape mode

App.SetOrientationLandscape();
App.WaitForElement("ContentGrid");
#if ANDROID
VerifyScreenshot(cropLeft: 125);
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

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

The magic number 125 is used for cropLeft without explanation. Consider extracting this value to a named constant (e.g., AndroidLandscapeNavigationBarWidth) to improve code clarity and maintainability across all three test files where this same value is duplicated.

Copilot uses AI. Check for mistakes.
App.SetOrientationLandscape();
App.WaitForElement("ContentGrid");
#if ANDROID
VerifyScreenshot(cropLeft: 125);
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

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

The magic number 125 is duplicated from Issue28986_Shell.cs. Consider extracting this value to a shared named constant (e.g., AndroidLandscapeNavigationBarWidth) to ensure consistency and ease future updates if this dimension changes.

Copilot uses AI. Check for mistakes.
App.SetOrientationLandscape();
App.WaitForElement("ContentGrid");
#if ANDROID
VerifyScreenshot(cropLeft: 125);
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

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

The magic number 125 is duplicated from the other Issue28986 test files. Consider extracting this value to a shared named constant (e.g., AndroidLandscapeNavigationBarWidth) to maintain consistency across all three toolbar tests.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

Some tests failed on Android:
image
Re-running the failed ones to check results.

@rmarinho rmarinho merged commit d7e5de8 into dotnet:net10.0 Oct 28, 2025
102 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2025
@TamilarasanSF4853 TamilarasanSF4853 deleted the fix-main-flaky-uitest-4 branch January 9, 2026 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants