 
         it "doesn't open the editor", ->
           atom.workspaceView.trigger "symbols-view:toggle-project-symbols"
-          symbolsView = atom.workspaceView.find('.symbols-view').view()
+
+          waitsForPromise ->
+            activationPromise
+
+          runs ->
+            symbolsView = atom.workspaceView.find('.symbols-view').view()
 
           waitsFor ->
             setArraySpy.callCount > 0

    it "shows an error message when no matching tags are found", ->
      atom.workspaceView.openSync('sample.txt')
      atom.workspaceView.getActiveView().trigger "symbols-view:toggle-file-symbols"
      symbolsView = atom.workspaceView.find('.symbols-view').view()
      setErrorSpy = spyOn(symbolsView, "setError").andCallThrough()

      waitsFor ->
        setErrorSpy.callCount > 0

    it "displays error when no tags match text in mini-editor", ->
      atom.workspaceView.openSync('sample.js')
      atom.workspaceView.getActiveView().trigger "symbols-view:toggle-file-symbols"

      waitsForPromise ->
        activationPromise

      runs ->
        symbolsView = atom.workspaceView.find('.symbols-view').view()

      waitsFor ->
        setArraySpy.callCount > 0
