         keydown '/'
 
         # How to simulate typing?
-        editor.commandModeInputView.input[0].value = 'def'
+        editor.commandModeInputView.editor.setText 'def'
         # How do I tell the view to simulate'enter'?
         editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
 

        it "composes with operators", ->
          keydown 'd'
          keydown '/'
          editor.commandModeInputView.input[0].value = 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
          expect(editor.getText()).toEqual "def\nabc\ndef\n"

        it "repeats correctly with operators", ->
          keydown 'd'
          keydown '/'
          editor.commandModeInputView.input[0].value = 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

          keydown '.'

      it "loops back around", ->
        editor.setCursorBufferPosition([3, 0])
        keydown '/'
        editor.commandModeInputView.editor.setText 'def'
        editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

        expect(editor.getCursorBufferPosition()).toEqual [1, 0]
