[Testing] Replace Thread.Sleep with retryTimeout in UI tests#33809
Draft
[Testing] Replace Thread.Sleep with retryTimeout in UI tests#33809
Conversation
- Replace Thread.Sleep with retryTimeout in UI tests per guidelines - Add comment explaining CollectionView vs ListView timing differences (Issue18751 vs Issue18896) - Add comment clarifying retryTimeout (not tolerance) for SwipeView animation timing - Increase SwipeView retryTimeout to 3s for animation completion Co-authored-by: rmarinho <1235097+rmarinho@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create pull request with Copilot review suggestions
[Testing] Replace Thread.Sleep with retryTimeout in UI tests
Jan 31, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Applies Copilot code review suggestions from PR #33749 to net11.0. Replaces fixed
Thread.Sleepdelays with adaptiveretryTimeoutparameters that retry screenshot comparisons until they match or timeout.Changes
Thread.Sleep/Task.DelaywithretryTimeoutparameterretryTimeout(nottolerance) for animation timing per UI testing guidelinesExample
Files Changed
#if WINDOWSSleep, use cross-platform retryTimeoutOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.