component.$node.find('.r-ship-name'); ! $ships.each(function(i, a) { var name = $(a).text().trim(); expect(name).to.equal(mocks.starships[i].name); }); });
and I enter "Hugo Boss" in the header searchfield and I wait for 0.5 seconds and I should see "Hugo Boss" in the autocomplete and I should see "BRAND" in the autocomplete item when I click on the 1st menu item in the auto complete and I wait for 0.5 seconds then the value of the header search field should be "hugo boss”