Testing when using fillIn


I’m writing tests for Ember for the first time.

I’ve got a search box:

<input id="searchInput" class="ember-view ember-text-field sg-input span4" placeholder="Search the database" type="text" name="searchInput">

I want to fill in that search box with “assignment”.

My fillin() code looks like:

fillIn('input#searchInput', 'assignment');

But that does not put ‘assignment’ into the search box.

How do I get it working? What other code can I provide?


Those testing helpers are asynchronous, you’ll have to use an andThen block to check for its result