test: draggable region allows moving window#41127
Merged
codebytere merged 5 commits intoelectron:mainfrom Jan 31, 2024
Merged
Conversation
Member
Author
|
Previous tests for Windows passed, I'm not sure why they're failing now. |
codebytere
approved these changes
Jan 30, 2024
Member
codebytere
left a comment
There was a problem hiding this comment.
Approving the added dependency. I assume we'll want to add more dragging tests, but i'm 👍🏻 on starting with this for now!
Member
|
Windows error: feels pretty unrelated to me - maybe try rebasing @samuelmaddock? |
37d6d92 to
e54c74b
Compare
codebytere
approved these changes
Jan 31, 2024
|
No Release Notes |
This was referenced Jan 31, 2024
4 tasks
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.
Description of Change
Added a test to move a window around using draggable regions. This is in response to a recent regression following a Chromium upgrade which was not caught.
Nutjs is used to automate mouse dragging. This seems like a worthy dependency to try out since I know we've had issues with robotjs in the past.
Here's the test in action:
Screen.Recording.2024-01-26.at.12.31.55.PM.mov
As an aside, I found that using Mac Stage Manager causes windows with position
x=0to be offset from the left side of the screen (as seen in the video).Checklist
npm testpassesRelease Notes
Notes: none