 
       runs ->
         editorView = atom.workspaceView.getActiveView()
-        atom.workspaceView.trigger 'project-find:show'
+        atom.commands.dispatch(workspaceElement, 'project-find:show')
 
       waitsForPromise ->
         activationPromise


    describe "when core:cancel is triggered", ->
      beforeEach ->
        atom.workspaceView.trigger 'project-find:show'
        projectFindView.focus()

      it "detaches from the root view", ->

        it "finds the escape char", ->
          projectFindView.findEditor.setText('a')
          projectFindView.replaceEditor.setText('\\t')
          atom.commands.dispatch(projectFindView[0], 'project-find:replace-all')

          waitsForPromise ->
            replacePromise
