         expect($('atom-text-editor.commit-description.is-focused').length).toBe(1)
 
     it 'selects hunks using the arrow keys', ->
-      makeChange('list.md', "oneish\ntwo\nthree\nfour\nfive\nsix\nseven\neight\nnine\nten\neleven\ntwelve\nthirteen\nfourteen\n")
-      dispatchCommand()
+      runs ->
+        makeChange('list.md', "oneish\ntwo\nthree\nfour\nfive\nsix\nseven\neight\nnine\nten\neleven\ntwelve\nthirteen\nfourteen\n")
+        dispatchCommand()
 
       waitsFor 'the changes element to be displayed', ->
         workspaceElement.querySelector('git-file-summary-element .filename')?.textContent == 'list.md' and

        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', ->
      makeChange()
      dispatchCommand()

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

        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', ->
      runs ->
        makeChange()
        dispatchCommand()

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