           resultsView.find('.path:eq(1) .search-result:first').addClass('selected')
           resultsView.find('.path:eq(0)').view().expand(false)
 
-          resultsView.trigger 'core:move-up'
+          atom.commands.dispatch resultsView[0], 'core:move-up'
 
           selectedItem = resultsView.find('.selected')
           expect(selectedItem).toHaveClass('path')

        expect(resultsView.find('.replacement').text()).toBe 'cats'

    it "renders the replacement when changing the text in the replacement field", ->
      projectFindView.trigger 'core:confirm'

      waitsForPromise ->
        searchPromise


        expect(resultsView.prop('scrollHeight')).toBeGreaterThan resultsView.height()
        previousScrollHeight = resultsView.prop('scrollHeight')
        atom.commands.dispatch resultsView[0], 'core:move-to-bottom'
        expect(resultsView.find("li").length).toBe resultsView.getPathCount() + resultsView.getMatchCount()

  describe "arrowing through the list", ->
