mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
Emoji 5.0 support
This commit is contained in:
@ -137,3 +137,16 @@ test("Reply as new message", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
test("Updating the topic title with emojis", () => {
|
||||
visit("/t/internationalization-localization/280");
|
||||
click('#topic-title .fa-pencil');
|
||||
|
||||
fillIn('#edit-title', 'emojis title :bike: :blonde_woman:t6:');
|
||||
|
||||
click('#topic-title .submit-edit');
|
||||
|
||||
andThen(() => {
|
||||
equal(find('.fancy-title').html().trim(), 'emojis title <img src=\"/images/emoji/emoji_one/bike.png?v=5\" title=\"bike\" alt=\"bike\" class=\"emoji\"> <img src=\"/images/emoji/emoji_one/blonde_woman/6.png?v=5\" title=\"blonde_woman:t6\" alt=\"blonde_woman:t6\" class=\"emoji\">', 'it displays the new title with emojis');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user