How to use test helper find(selector, context)

In my template I have a list with two items. I want to query in my test for those two items but I’m unable to do so.

<ul class="mylist">

In my test I’m querying:

var myList = find('.mylist li');

And then I try to get the first element by:


but this doesnt seem to work. This works:


Its returning “First” as espected.

What I’m doing wrong?

After spending some time I found one solution


will get the object. And to get the text I have to call