Skip to content
Permalink
Browse files

Improved tests.

  • Loading branch information
jacekbogdanski committed Nov 19, 2019
1 parent fe47c28 commit 4de9296cf3d6e81ce1e4a7fc8663f9c72c78cd55
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/plugins/emoji/basic.js
@@ -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' );
} );
}
};

0 comments on commit 4de9296

Please sign in to comment.
You can’t perform that action at this time.