-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix Windows device tests #20401
base: main
Are you sure you want to change the base?
Fix Windows device tests #20401
Conversation
678a5f9
to
c377d9a
Compare
Waiting a long time on windows just so we can see how long it really takes instead of slowly incrementing to let the tests finish. |
d12ef22
to
55738c8
Compare
bd65e21
to
7a07c7d
Compare
// Some views (like the switch) are animating when the window is shown | ||
// so we need to wait a few milliseconds for the animation to complete. | ||
// If the animated views are still a bit flakey, we can increase this to | ||
// about 250. If we start going above that then there is likely another | ||
// issue. | ||
await Task.Delay(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main fix for a few "flaky tests" that are testing controls that make use of animations. Typically animations only start once the control is on-screen, so we need to wiat for them to actually complete befoer snapshots/testing colros/testing state
/rebase |
- Some views need a few ms to finish animating The switch on WinUI needs to animate to "on" so we need to wait a few ms so that the control is ready for the screenshots/color comparisons. - We now have too many tests for WinUI to handle We need to break up all the tests by category to avoid "running out of windows"
e8d3217
to
11a001c
Compare
Pull request was converted to draft
Hey @mattleibow, could you rebase it? |
Description of Change
The switch on WinUI needs to animate to "on" so we need to wait a few ms so that the control is ready for the screenshots/color comparisons.
We need to break up all the tests by category to avoid "running out of windows"
Fixes: