-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Current behavior:
When I write a test in cypress that performs a drag event on a canvas that has drag event listeners attached from d3, test fail. In the cypress UI, the canvas looks blank (it looks as expected if I am not testing events on the canvas ), the click events seem to register but the actions do not occur.
Desired behavior:
When I write a test with drag events on a D3 canvas, I expect the app will act the same as if I had manually performed a drag event.
Steps to reproduce: (app code and test code)
I created a test case: https://github.com/csweaver/cypress-test-tiny (master branch)
npm install
npm run start
npm run cypress:open
Versions
Cypress: 3.1.5
OS: OSX 10.13.6
Chrome: 71
Seems related to this stack overflow question: https://stackoverflow.com/questions/54027884/testing-d3-js-drag-events-with-cypress-js
Not part of the bug report, but I really loved writing tests in cypress and was super disappointed when I realized I'd have to abandon it because it couldn't support d3 events (key to our app). Great work on the developer interface!