Skip to content

Commit

Permalink
Improved tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Nov 19, 2019
1 parent fe47c28 commit 4de9296
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/plugins/emoji/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,19 @@
} );

arrayAssert.itemsAreSame( expected, actual );
assert.areSame( '😻 smiling_cat_face_with_heart-eyes' , autocomplete.view.element.getChild( 0 ).getText(), 'First element in view should start from "smiling".' );
assert.areSame( '<span>😻</span> smiling_cat_face_with_heart-eyes' , autocomplete.view.element.getChild( 0 ).getHtml(), 'First element in view should start from "smiling".' );
} );
},

// (#2583)
'test emoji autocomplete panel displays name': function( editor, bot ) {
emojiTools.runAfterInstanceReady( editor, bot, function( editor, bot ) {
bot.setHtmlWithSelection( '<p>foo 😻 :smiling_cat_face_with_heart-eyes:^</p>' );
bot.setHtmlWithSelection( '<p>:smiling_cat_face_with_heart-eyes:^</p>' );
editor.editable().fire( 'keyup', new CKEDITOR.dom.event( {} ) );

var element = CKEDITOR.document.findOne( '.cke_emoji-suggestion_item' );

assert.areEqual( element.getText(), '😻 smiling_cat_face_with_heart-eyes' );
assert.areEqual( element.getHtml(), '<span>😻</span> smiling_cat_face_with_heart-eyes' );
} );
}
};
Expand Down

0 comments on commit 4de9296

Please sign in to comment.