tastejs / todomvc

Helping you select an MV* framework - Todo apps for React.js, Ember.js, Angular, and many more
http://todomvc.com
Other
28.64k stars 13.77k forks source link

Backbone, Knockback, Dojo, GWT focus issues #1015

Open taylorhakes opened 10 years ago

taylorhakes commented 10 years ago

Backbone, Knockback, Dojo, GWT architecture examples have issues with the following test. The focus should be at the end of the text, not the beginning or highlighted.

stephenplusplus commented 10 years ago

Thanks for opening this. To clarify a quick thing, maybe just for my future self, the gif above was a one-off issue with Mithril. That produced expected behavior in one place, then unexpected in another. The other examples with bugs produce consistent spec deviations.

@ColinEberhardt - I haven't played much with the testing suite, but is this something that is covered/meant to be covered/impossible to cover?

ColinEberhardt commented 10 years ago

@stephenplusplus thanks for bringing this to my attention. At the moment the tests simply use the sendKeys web driver method to provide text input. To test for this sort of issue would probably require a much more low-level interaction involving simulation of click events at certain screen locations.

I have a feeling that such a test would be very difficult to write and highly prone to producing false negatives!

ColinEberhardt commented 10 years ago

Actually, ignore that ... I think this should be testable! I'll give it a go in a couple of days when I am back in front of my desktop machine.

The whole test suite takes almost two hours to run, making regression testing a bit of a laborious process. I really need to automate some of this process ...

arthurvr commented 9 years ago

Actually, ignore that ... I think this should be testable! I'll give it a go in a couple of days when I am back in front of my desktop machine.

@ColinEberhardt Was you ever able to work on this?