garris / ember-backstop

BackstopJS visual regression testing addon for Ember.
MIT License
56 stars 21 forks source link

also copy checkbox/radio "checked" DOM attribute to the snapshot #42

Closed vgrinko closed 4 years ago

vgrinko commented 4 years ago

See https://github.com/garris/ember-backstop/issues/41 Basically, explicitly synchronizing "checked" JS attribute back to the DOM in the snapshot - so it could be enabled by default when rendered in Chromium/Chrome.

Ref: https://stackoverflow.com/a/4882020/3785649

Here is a gif screencast to show that DOM does not update when user interacts with checkbox: test

vgrinko commented 4 years ago

@shankarsridhar thanks for feedback. added input.type checks and comments

also added test