-
Notifications
You must be signed in to change notification settings - Fork 1k
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 DragDropTests #8860
Fix DragDropTests #8860
Conversation
sharwell
commented
Mar 15, 2023
•
edited
Loading
edited
- Make sure to start a drag/drop operation on DragEnter (DragOver may or may not occur due to test speed)
- Match Mouse Down with Mouse Up
- Remove artificial delays
* Make sure to start a drag/drop operation on DragEnter * Match Mouse Down with Mouse Up * Remove artificial delays
@@ -120,7 +120,7 @@ public async Task Button_AchorNone_NoResizeOnWindowSizeWiderAsync() | |||
form, | |||
inputSimulator => inputSimulator.Mouse | |||
.LeftButtonDown() | |||
.MoveMouseBy(form.DisplayRectangle.Width, 0) | |||
.DragMouseBy(form.DisplayRectangle.Width, 0) |
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.
I was able to get this working with MoveMouseTo
but send virtual coordinates here.
@@ -266,7 +263,7 @@ public async Task Button_Mouse_Press_With_Drag_Off_Button_Does_Not_Cause_Button_ | |||
form, | |||
inputSimulator => inputSimulator.Mouse | |||
.LeftButtonDown() | |||
.MoveMouseTo(virtualPoint.X, virtualPoint.Y) |
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.
Did you see MoveMouseTo
was also problematic?
fa43888
to
fa9edb3
Compare