[Testing] Fix for flaky UITests (PlatformDragEventArgs & Issue8870) in CI that occasionally fails #30088
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes updates to test cases to improve reliability and performance in the
DragAndDropUITests
andIssue8870
tests. The changes address flakiness in drag-and-drop operations and optimize delays during orientation changes.Build Link: https://dev.azure.com/xamarin/public/_build/results?buildId=144524&view=ms.vss-test-web.build-test-results-tab&runId=4381475&resultId=100039&paneView=attachments
Test Cases
src/Controls/tests/TestCases.Shared.Tests/Tests/DragAndDropUITests.cs
: Added an additional drag-and-drop operation in thePlatformDragEventArgs
test to mitigate flakiness observed in CI environments.src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue8870.cs
: ReplacedTask.Delay
withThread.Sleep
and reduced the delay duration from 3000ms to 1000ms in theRotatingCollectionViewWithHTMLShouldNotHangOrCrash
test to improve execution speed.