Skip to content

[Testing] Fix for flaky tests which randomly fails on CI - 9 #28887

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

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

anandhan-rajagopal
Copy link
Contributor

This pull request includes several changes to improve the stability and reliability of the tests in the src/Controls/tests directory. The most important changes involve adjusting delays and timeouts to ensure proper synchronization and adding additional checks to confirm the completion of UI operations.

Improvements to test synchronization:

Enhancements to UI operation checks:

@anandhan-rajagopal anandhan-rajagopal marked this pull request as ready for review April 9, 2025 12:44
@Copilot Copilot AI review requested due to automatic review settings April 9, 2025 12:44
@anandhan-rajagopal anandhan-rajagopal requested a review from a team as a code owner April 9, 2025 12:44
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Apr 9, 2025
Copy link
Contributor

Hey there @@anandhan-rajagopal! 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 Apr 9, 2025
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.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

//give the cv time to scroll
var rand = new Random();
await Task.Delay(rand.Next(10, 200));
await Task.Delay(200);
Copy link
Preview

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

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

Using a fixed delay may not consistently guarantee that the scroll operation has completed on all devices. Consider waiting for a specific UI element state or condition that explicitly signals that scrolling is done.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label Apr 9, 2025
@rmarinho
Copy link
Member

rmarinho commented Apr 9, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen merged commit 2cc5a76 into dotnet:main Apr 9, 2025
127 of 129 checks passed
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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants