pobch / react-diagram

A diagram drawing web-app, built by React.js and HTML canvas
https://draw.crispyscript.com
MIT License
8 stars 0 forks source link

How to test canvas drawing? #8

Open pobch opened 2 years ago

pobch commented 2 years ago

Possible approaches

pobch commented 2 years ago

Let's try Cypress first. Jest may not be suitable for stuff related to layout, reason: https://github.com/testing-library/user-event/issues/440#issuecomment-685010755

pobch commented 2 years ago

Helpful info

How to drag & drop in Cypress

Image snapshot diff when cypress run, but not diff when cypress open

Docs