           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')


      runs ->
        projectFindView.findEditor.setText('items')
        projectFindView.trigger 'core:confirm'
        openHandler = jasmine.createSpy("open handler")
        atom.workspace.onDidOpen openHandler



      runs ->
        projectFindView.findEditor.setText('items')
        atom.commands.dispatch projectFindView[0], 'core:confirm'

      waitsForPromise ->
        searchPromise
