Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing] Fix for flaky UITests in CI that occasionally fail - 4 #28137

Merged

Conversation

HarishKumarSF4517
Copy link
Contributor

@HarishKumarSF4517 HarishKumarSF4517 commented Mar 3, 2025

Description of Change

This pull request includes updates to the test cases in the src/Controls/tests/TestCases.Shared.Tests/Tests/Issues directory to improve the reliability of UI interactions during automated testing. The most important changes involve replacing certain Appium actions with more reliable alternatives and adding comments to explain these changes.

TestCases

  • Issue16910
  • Issue25889

Fixes #28178

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

Hey there @HarishKumarSF4517! 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 Mar 3, 2025
@HarishKumarSF4517 HarishKumarSF4517 marked this pull request as ready for review March 3, 2025 13:57
@Copilot Copilot bot review requested due to automatic review settings March 3, 2025 13:57
@HarishKumarSF4517 HarishKumarSF4517 requested a review from a team as a code owner March 3, 2025 13:57
Copy link
Contributor

@Copilot 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.

PR Overview

This PR aims to improve the reliability of UI tests in CI by adjusting the scrolling interactions in two test cases. Key changes include:

  • Replacing a ScrollUp action with a DragCoordinates gesture in Issue16910 to ensure consistent triggering of the refresh command.
  • Adding a preliminary ScrollUp step before a ScrollDown in Issue25889 to reliably trigger the command.

Reviewed Changes

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16910.cs Modified the refresh test to use DragCoordinates with computed element positions.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs Adjusted scrolling sequence by adding a ScrollUp before ScrollDown with an updated comment.

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

@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label Mar 3, 2025
@HarishKumarSF4517 HarishKumarSF4517 force-pushed the enable-xamarinuitest-harish38 branch from 4917bc2 to d6d7495 Compare March 3, 2025 14:30
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen added this to the .NET 9 SR5 milestone Mar 3, 2025
@jsuarezruiz
Copy link
Contributor

/rebase

@jsuarezruiz
Copy link
Contributor

LGTM, but rebased to fix the flaky tests already fixed by #28137 and failing in the latest build from this PR.

HarishKumarSF4517 and others added 2 commits March 4, 2025 12:05
…889.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions bot force-pushed the enable-xamarinuitest-harish38 branch from d6d7495 to 531c26c Compare March 4, 2025 12:05
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis merged commit 09bca41 into dotnet:main Mar 5, 2025
123 checks passed
bhavanesh2001 pushed a commit to bhavanesh2001/maui that referenced this pull request Mar 7, 2025
…net#28137)

* Increase stability for CI failure Issues

* Update src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Reenable BindingUpdatesFromInteractiveRefresh UI Test
5 participants