-
-
Notifications
You must be signed in to change notification settings - Fork 287
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 drag-and-drop when dragging outside components #3177
Conversation
maybe a test? |
test/visual/components/index.spec.ts
Outdated
@@ -112,20 +114,58 @@ test('showing drag-and-drop previews', async ({ page, argosScreenshot }) => { | |||
await argosScreenshot('drop-preview-left', screenshotConfig); | |||
|
|||
await page.mouse.move(...getDropPreviewTopCoordinates(inputBoundingBox!), { | |||
steps: 10, | |||
steps: 1, |
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.
10 steps was misleading, it wasn't really screenshotting the final state after the drag.
Yep I was gonna add it, added it now. |
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 suppose these screenshot changes are expected?
Nope they were wrong, these step numbers seem to influence certain screenshots... I fixed it now. |
I've noticed recently that the drag-and-drop is buggy in some cases, it can probably be quite annoying and turn off some users... Added a fix and a test.
Not sure what changed to cause this problem, it seems like the page boxes used to include the margins but now they don't.
Before:
Screen.Recording.2024-02-07.at.18.03.13.mov
After:
Screen.Recording.2024-02-07.at.18.03.48.mov
I've seen some bad bugs with renaming nodes/pages too, will take a look at those next and create an issue if it's not quick.