   )
 
   it('blur', ->
-    browser.switchTo().defaultContent()
     startRange.click()    # Any element outside editor to lose focus
     updateEditor()        # Blur currently requires two update cycles to trigger
-    updateEditor(false)
+    updateEditor()
     expect(startRange.getText()).toEqual('')
     expect(endRange.getText()).toEqual('')
   )


  it('move cursor', ->
    editor.sendKeys(protractor.Key.ARROW_LEFT)
    updateEditor(false)
    expect(startRange.getText()).toEqual('1529')
    expect(endRange.getText()).toEqual('1529')
    browser.switchTo().frame('quill-1')
    [0..15].forEach( ->   # More than enough times to get back to the top
      editor.sendKeys(protractor.Key.ARROW_UP)
    )
    updateEditor(false)
    expect(startRange.getText()).toEqual('0')
    expect(endRange.getText()).toEqual('0')
    browser.switchTo().frame('quill-1')
    [0..3].forEach( ->
      editor.sendKeys(protractor.Key.ARROW_RIGHT)
    )
    updateEditor(false)
    expect(startRange.getText()).toEqual('4')
    expect(endRange.getText()).toEqual('4')
  )

    expectedDelta = {
      ops: [{ insert: text }]
    }
    expect(deltaOutput.getText()).toEqual(JSON.stringify(expectedDelta))
    # Selection should not change due to typing
    expect(startRange.getText()).toEqual('0')
