 
       runs ->
         expect(symbolsView.loading).toBeEmpty()
-        expect(atom.workspaceView.find('.symbols-view')).toExist()
+        expect($(atom.views.getView(atom.workspace)).find('.symbols-view')).toExist()
         expect(symbolsView.list.children('li').length).toBe 4
         expect(symbolsView.list.children('li:first').find('.primary-line')).toHaveText 'callMeMaybe'
         expect(symbolsView.list.children('li:first').find('.secondary-line')).toHaveText 'tagged.js'
         expect(symbolsView.list.children('li:last').find('.primary-line')).toHaveText 'thisIsCrazy'
         expect(symbolsView.list.children('li:last').find('.secondary-line')).toHaveText 'tagged.js'
         expect(symbolsView.error).not.toBeVisible()
-        atom.workspaceView.trigger "symbols-view:toggle-project-symbols"
+        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-project-symbols")
 
         fs.removeSync(atom.project.resolve('tags'))
 

        atom.workspace.open('sample.js')

      runs ->
        atom.workspaceView.getActiveView().trigger "symbols-view:toggle-file-symbols"

      waitsForPromise ->
        activationPromise

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

      waitsFor ->

        atom.workspace.open('sample.js')

      runs ->
        atom.commands.dispatch(atom.views.getView(atom.workspace), "symbols-view:toggle-file-symbols")

      waitsForPromise ->
        activationPromise

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

      waitsFor ->
        symbolsView.list.children('li').length > 0
