Hacker News new | past | comments | ask | show | jobs | submit login

Just realized that I never use the drag and drop I implemented in my application.

Wonder if it actually still works.




... and this, reader, is why we have end-to-end testing.


Probably more a case of me never having tried than anything else because I'm sure someone will have solved it, but end-to-end testing of drag and drop sounds pretty hard.


It isn't. Jest and Puppeteer are my current choice, and it's really just a matter of sending mousedown, mousemove, and mouseup events to the browser and checking the expected behaviour is right.

It makes a huge difference to how long you send testing manually.


¯\_(ツ)_/¯




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: