Skip to content
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

Drag and Drop Test Passing but No Actions Occur #112

Open
Langelozzi opened this issue Jul 4, 2022 · 12 comments
Open

Drag and Drop Test Passing but No Actions Occur #112

Langelozzi opened this issue Jul 4, 2022 · 12 comments

Comments

@Langelozzi
Copy link

I am attempting to use the drag and drop plugin to test filtering on a kendo table which occurs when you drag the column header into the drop target (see manual-drag-drop, attachment 2). When I run my test I see the events occurring but nothing is being done on the application itself (see cypress-drag-drop, attachment 1).

cypress-drag-drop.mp4
manual-drag-drop.mp4
@ericcmmi
Copy link

Do you know what version of Cypress you are using and which version of the plug-in? We just updated to 9.7 from 9.61 and are experiencing the same thing.

@Langelozzi
Copy link
Author

I am using the following versions:
Cypress - 10.0.3
Drag and Drop Plugin - 2.1.0

@jlinall
Copy link

jlinall commented Jul 29, 2022

As a workaround for our project, we commented out this.dragover() of the drag() function in index.js of this library. We're still investigating the actual cause. Currently, we're suspecting that it has something to do with the draggable elements being inside scrollable elements.

@Langelozzi
Copy link
Author

@jlinall Thank you for your suggestion. I have commented out 'this.dragover()' and other functions in an attempt to solve the issue but have still be unsuccessful with my attempts.

@bdiallo
Copy link

bdiallo commented Aug 19, 2022

Hi @Langelozzi have you found a solution? As I have the same problem

@Langelozzi
Copy link
Author

Hi @bdiallo, I have still been unable to resolve this issue. I have been in contact with cypress support but after weeks of communication, they were unable to find a solution.

@barnie-karbonhq
Copy link

any luck with this @Langelozzi ?

@Langelozzi
Copy link
Author

@barnie-karbonhq No luck thus far :(

@barnie-karbonhq
Copy link

@jlinall , commenting out this.dragover() seems to solve the issue for us too. How do you manage this on package.json?

@jlinall
Copy link

jlinall commented Sep 12, 2022

@barnie-karbonhq -- as a workaround, we copied the index.js of this project into our Cypress commands file. We'd rather use the package, but will need to wait until the issue is resolved before reverting back.

@barnie-karbonhq
Copy link

Thanks @jlinall , will try that. We are using package 2.0.0 and doing npm install --force , which works fine.

@maasha
Copy link

maasha commented Feb 1, 2024

#112 (comment)

I also commented out the this.dragover() and now it works!

  drag(sourceWrapper, targetSelector, options) {
    this.init(sourceWrapper, targetSelector, options)
      .then(() => this.dragstart())
      // .then(() => this.dragover())
      .then((success) => {
        if (success) {
          return this.drop().then(() => true)
        } else {
          return false
        }
      })
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants