-
Notifications
You must be signed in to change notification settings - Fork 45
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
cy.get(...).move(...) not working #37
Comments
duplicate of #36 |
No. Source code for drag :
My page is serapated in 3 divs : div.left, div.separator & div.right. |
May I share you the source code of the tested components. |
I have the same issue and I have set up the package from "github:4teamwork/cypress-drag-drop" as well. Is there any update on this? |
This plugin is kind of useless. Maybe there was a major API change or something but as mentioned before nothing is working as expected. I stepped through some calls and it seems like the internal API is broken. drag(sourceWrapper, targetSelector, options) {
this.init(sourceWrapper, targetSelector, options)
.then(() => this.dragstart())
.then(() => this.dragover())
.then(() => this.drop())
.then(() => true)
}, The internal function declarations: dragstart({ clientX, clientY } = {})
dragover({ clientX, clientY } = {})
drop({ clientX, clientY } = {}) All internal functions |
I'm experiencing the same problem but also can't figure out a way to get dragging working even manually. If anyone has a manual workaround or any examples of working solutions with or without this plugin, I'd appreciate any help 👍 |
Both move and drag are doing nothing for me. Elements are just staying put. |
The code below worked for me. Drag and drop with iframe: const dataTransfer = new DataTransfer; I also used: https://www.npmjs.com/package/cypress-iframe |
Are you guys seeing |
@NPC yes Im getting the exact same thing |
don't know if this solves anything for anyone but it should be move({ x: 100, y: 100, force: true}) |
Yes, this indeed helped. Needed the |
@cckrause |
Hi,
I tried the new child command move.
Nevertheless, this command is not effective.
Have you a hint on why the command is not working ?
source code :
My goal is to move the vertical separator between the two panes 100px to the right.
The text was updated successfully, but these errors were encountered: