Skip to content

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

Merged
jfversluis merged 2 commits intomainfrom
unknown repository
Mar 5, 2025
Merged

[Testing] Fix for flaky UITests in CI that occasionally fail - 4#28137
jfversluis merged 2 commits intomainfrom
unknown repository

Conversation

@HarishKumarSF4517
Copy link
Copy Markdown
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
@dotnet-policy-service
Copy link
Copy Markdown
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 AI 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
Copy Markdown
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.

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.

@ghost ghost added the area-testing Unit tests, device tests label Mar 3, 2025
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen added this to the .NET 9 SR5 milestone Mar 3, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Mar 3, 2025
@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing Mar 3, 2025
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/rebase

@jsuarezruiz
Copy link
Copy Markdown
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
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis merged commit 09bca41 into dotnet:main Mar 5, 2025
123 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Mar 5, 2025
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>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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