From 60e41c3f251c7b8b42aa86c1c39f5ccae42fb496 Mon Sep 17 00:00:00 2001 From: Joseph Baylon Date: Wed, 21 Jul 2021 16:01:43 -0700 Subject: [PATCH] MM-37232 Detox/E2E: Add e2e for posting multi-line emojis (#5562) --- detox/e2e/test/smoke_test/message_posting.e2e.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/detox/e2e/test/smoke_test/message_posting.e2e.js b/detox/e2e/test/smoke_test/message_posting.e2e.js index ab0ce5e6b..aaab8b57f 100644 --- a/detox/e2e/test/smoke_test/message_posting.e2e.js +++ b/detox/e2e/test/smoke_test/message_posting.e2e.js @@ -97,6 +97,17 @@ describe('Message Posting', () => { await expect(postListPostItem).toBeVisible(); }); + it('MM-T4125 should be able to post multi-line emojis', async () => { + // # Post multi-line emojis + const message = ':fire: :fire:\n:fire: :fire: :fire:\n:fire:'; + await postMessage(message); + + // * Verify message is posted + const {post} = await Post.apiGetLastPostInChannel(townSquareChannel.id); + const {postListPostItem} = await getPostListPostItem(post.id, 'šŸ”„ šŸ”„\nšŸ”„ šŸ”„ šŸ”„\nšŸ”„'); + await expect(postListPostItem).toBeVisible(); + }); + it('MM-T3189 should be able to scroll up in channel with long history', async () => { // # Post messages await goToChannel(testChannel.display_name);