         runs ->
           editor = atom.workspace.getActiveEditor()
           editor.setCursorBufferPosition([6,0])
-          atom.commands.dispatch(atom.views.getView(atom.workspace), 'symbols-view:return-from-declaration')
+          atom.commands.dispatch(getEditorView(), 'symbols-view:return-from-declaration')
           expect(editor.getCursorBufferPosition()).toEqual [6,0]
 
       it "returns to previous row and column", ->

        symbolsView.filterEditorView.setText("nothing will match this")
        window.advanceClock(symbolsView.inputThrottle)

        expect($(atom.views.getView(atom.workspace)).find('.symbols-view')).toExist()
        expect(symbolsView.list.children('li').length).toBe 0
        expect(symbolsView.error).toBeVisible()
        expect(symbolsView.error.text().length).toBeGreaterThan 0


      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'
