I have a user interface in the browser which has heavy user interaction, and interface mechanisms such as drag and drop and selecting etc. I can forsee a lot of potential problems in the code - for example, in the middle of dragging, something else gets triggered, (such as a mouse-over), which causes bugs. I can also see how some browser compatibility issues can result in bugs.
A couple of examples of the type of thing I'm looking to test: Ex. 1. Whether the correct element is receiving a mouse click? Ex. 2. What events are being triggered and objects being modified as I drag from A to B? Ex. 3. Whether a user interaction results in the correct final result? For example, click at 300x200 on image, hold mouse, and drop at 500x300 in a div bucket. Now javascript object uploadbucket should contain file.
Is there a good testing framework for this use case? What approach would you take to test Ex. 3?
Doing this manually and using Google Dev Tools seems too repetitive.
Aucun commentaire:
Enregistrer un commentaire