       runs ->
         symbolsView.cancel()
         spyOn(symbolsView, 'generateTags').andCallThrough()
-        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-file-symbols")
+        atom.commands.dispatch(getEditorView(), "symbols-view:toggle-file-symbols")
 
       waitsFor ->
         symbolsView.list.children('li').length > 0

        atom.workspace.open("tagged.js")

      runs ->
        expect($(atom.views.getView(atom.workspace)).find('.symbols-view')).not.toExist()
        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-project-symbols")

      waitsForPromise ->
        activationPromise

      runs ->
        symbolsView = $(atom.views.getView(atom.workspace)).find('.symbols-view').view()
        expect(symbolsView.loading).toBeVisible()

      waitsFor ->


      runs ->
        expect(symbolsView.loading).toBeEmpty()
        expect($(getWorkspaceView()).find('.symbols-view')).toExist()
        expect(symbolsView.list.children('li:first').find('.primary-line')).toHaveText 'test'
        expect(symbolsView.list.children('li:first').find('.secondary-line')).toHaveText 'Line 1'
