Repository navigation
[ci-scan-net11] Fix for Windows DragEvents UI test times out waiting for DragOver - #38095
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38095Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38095" |
|
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. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run maui-pr-uitests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
🟡 Changes recommended
The added [Retry(4)] is unlikely to be effective as-is because retries re-run without resetting/navigating back to the gallery start state, so subsequent attempts may fail earlier without re-exercising the drag scenario.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR targets flakiness in the Controls UI test suite by attempting to mitigate intermittent failures in the DragEvents UI test (notably seen on Windows CI) via NUnit retry behavior.
Changes:
- Adds a
[Retry(4)]attribute to theDragEventsUI test to re-run the test on failure.
File summaries
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/DragAndDropUITests.cs | Adds NUnit retry metadata to the DragEvents test to reduce intermittent failures. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
| [Test] | ||
| [Retry(4)] | ||
| [Category(UITestCategories.Gestures)] |
This PR addresses flaky UI test failures in CI and includes updates to improve rendering and test stability across platforms. The main changes are as follows:
DragEvents: The test fails because the drag-and-drop operation sometimes stops midway, causing the assertion validations to fail. Therefore, a retry was added to ensure that the drag-and-drop operation completes successfully.
Fixes: #37561