         expect($('atom-text-editor.commit-description.is-focused').length).toBe(1)
 
     it 'focuses the commit message when a hunk is selected and the tab key is pressed', ->
-      makeChange()
-      dispatchCommand()
+      runs ->
+        makeChange()
+        dispatchCommand()
 
       waitsFor 'the changes element to be displayed', ->
         workspaceElement.querySelector('git-changes-view')?


  describe 'keyboard navigation', ->
    it 'focuses a hunk when the status list is focused and the right arrow key is pressed', ->
      makeChange()
      dispatchCommand()
      waitsFor 'the changes element to be displayed', ->
        workspaceElement.querySelector('git-changes-view')?


        expect($('git-diff-view:focus').length).toBe(1)

    it 'focuses the status list when a hunk is selected and the left arrow key is pressed', ->
      runs ->
        makeChange()
        dispatchCommand()

      waitsFor 'the changes element to be displayed', ->
        workspaceElement.querySelector('git-changes-view')?
