testEnterInBlockquoteRemovesUnnecessaryBrWithCursorAfterBr() {
    setUpFields(true);

    // Assume the following HTML snippet:-
    // <blockquote>one<br>|two<br></blockquote>
    //
    // After enter on the cursor position without the fix, the resulting HTML
    // after the blockquote split was:-
    // <blockquote>one</blockquote>
    // <div>&nbsp;</div>
    // <blockquote><br>two<br></blockquote>
    //
    // This creates the impression on an unnecessary newline. The resulting HTML
    // after the fix is:-
    //
    // <blockquote>one<br></blockquote>
    // <div>&nbsp;</div>
    // <blockquote>two<br></blockquote>
    field1.setSafeHtml(
        false,
        testing.newSafeHtmlForTest(
            '<blockquote id="quote" class="tr_bq">one<br>' +
            'two<br></blockquote>'));
    const dom = field1.getEditableDomHelper();
    Range.createCaret(dom.getElement('quote'), 2).select();
    testingEvents.fireKeySequence(field1.getElement(), KeyCodes.ENTER);
    const elem = field1.getElement();
    const secondBlockquote =
        dom.getElementsByTagNameAndClass(TagName.BLOCKQUOTE, null, elem)[1];
    assertHTMLEquals('two<br>', secondBlockquote.innerHTML);

    // Verifies that a blockquote split doesn't happen if it doesn't need to.
    field1.setSafeHtml(
        false,
        testing.newSafeHtmlForTest(
            '<blockquote class="tr_bq">one<br id="brcursor"></blockquote>'));
    selectNodeAndHitEnter(field1, 'brcursor');
    assertEquals(
        1,
        dom.getElementsByTagNameAndClass(TagName.BLOCKQUOTE, null, elem)
            .length);
  }
Tests that breaking after a BR doesn't result in unnecessary newlines.
@bug 1471047