 
         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

      editor.setCursorBufferPosition([8,14])
      atom.workspaceView.getActiveView().trigger 'symbols-view:go-to-declaration'

      symbolsView = atom.workspaceView.find('.symbols-view').view()
      expect(symbolsView.list.children('li').length).toBe 2
      expect(symbolsView).toBeVisible()
      spyOn(SymbolsView.prototype, "moveToPosition").andCallThrough()
      symbolsView.confirmed(symbolsView.array[0])

      waitsFor ->
        SymbolsView.prototype.moveToPosition.callCount == 1

    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
