jeudi 22 juin 2017

Simple Ember.js Test Methods

I'm reading through this section of the guide. I'm testing the complex component in the tutorial.

What I'm not understanding is why these two lines exist together, I believe only the first one should.

fillIn('.list-filter input', 'Seattle');

keyEvent('.list-filter input', 'keyup', 69);


In the first line, we fill in the input field which should automatically trigger a filtering of the results. Why are we adding an extra e to the field (keycode 69)? It's like we're going to search Seattlee (note the two e's at the end). Is the keyEvent method necessary to activate the triggering of the refresh but it actually doesn't print to the input field?




Aucun commentaire:

Enregistrer un commentaire