From 7b1c32e34c8e5d812079fc1701862b8d79d50bff Mon Sep 17 00:00:00 2001
From: sabril <5334504+saturninoabril@users.noreply.github.com>
Date: Tue, 27 Jan 2026 09:52:46 +0800
Subject: [PATCH] MM-67725: (test) Migrate enzyme to RTL (#34966)
---
.../formatted_markdown_message.test.tsx.snap | 220 ++---
.../get_link_modal.test.tsx.snap | 694 +++++++-------
.../__snapshots__/list_modal.test.tsx.snap | 390 ++++----
.../loading_image_preview.test.tsx.snap | 62 +-
.../__snapshots__/pdf_preview.test.tsx.snap | 73 +-
.../post_deleted_modal.test.tsx.snap | 148 +--
.../notification_settings.test.tsx | 30 +-
.../__snapshots__/index.test.tsx.snap | 146 +--
.../components/alert_banner/index.test.tsx | 21 +-
.../doughnut_chart.test.tsx.snap | 103 +--
.../__snapshots__/line_chart.test.tsx.snap | 99 +-
.../statistic_count.test.tsx.snap | 99 +-
.../__snapshots__/table_chart.test.tsx.snap | 106 +--
.../analytics/doughnut_chart.test.tsx | 39 +-
.../components/analytics/line_chart.test.tsx | 17 +-
.../analytics/statistic_count.test.tsx | 21 +-
.../components/analytics/table_chart.test.tsx | 15 +-
.../__snapshots__/at_mention.test.tsx.snap | 214 ++---
.../components/at_mention/at_mention.test.tsx | 67 +-
.../at_plan_mention/at_plan_mention.test.tsx | 38 +-
.../circular_chart.test.tsx.snap | 50 +-
.../circular_chart/circular_chart.test.tsx | 21 +-
.../custom_status_emoji.test.tsx.snap | 25 +-
.../custom_status_suggestion.test.tsx.snap | 65 +-
.../custom_status_text.test.tsx.snap | 20 +-
.../custom_status_emoji.test.tsx | 37 +-
.../custom_status_suggestion.test.tsx | 39 +-
.../custom_status/custom_status_text.test.tsx | 22 +-
.../__snapshots__/error_link.test.tsx.snap | 19 +-
.../__snapshots__/error_message.test.tsx.snap | 312 +++----
.../__snapshots__/error_title.test.tsx.snap | 74 +-
.../components/error_page/error_link.test.tsx | 22 +-
.../error_page/error_message.test.tsx | 88 +-
.../error_page/error_title.test.tsx | 50 +-
.../external_image/external_image.test.tsx | 23 +-
.../filename_overlay.test.tsx.snap | 137 ++-
.../file_thumbnail.test.tsx.snap | 66 +-
.../file_thumbnail/file_thumbnail.test.tsx | 35 +-
.../file_attachment/filename_overlay.test.tsx | 27 +-
.../file_info_preview.test.tsx.snap | 90 +-
.../file_info_preview.test.tsx | 13 +-
.../file_search_result_item.test.tsx.snap | 513 ++++-------
.../file_search_result_item.test.tsx | 19 +-
.../file_upload_overlay.test.tsx.snap | 93 +-
.../file_upload_overlay.test.tsx | 17 +-
.../formatted_markdown_message.test.tsx | 29 +-
.../src/components/get_link_modal.test.tsx | 114 ++-
.../__snapshots__/hint_toast.test.tsx.snap | 46 +-
.../components/hint-toast/hint_toast.test.tsx | 13 +-
.../src/components/list_modal.test.tsx | 178 ++--
.../components/loading_image_preview.test.tsx | 32 +-
.../markdown_image.test.tsx.snap | 589 +++++++++---
.../markdown_image/markdown_image.test.tsx | 289 +++---
.../components/message_submit_error.test.tsx | 18 +-
.../__snapshots__/msg_typing.test.tsx.snap | 49 +-
.../components/msg_typing/msg_typing.test.tsx | 17 +-
.../src/components/pdf_preview.test.tsx | 147 ++-
.../components/post_deleted_modal.test.tsx | 11 +-
.../profile_picture.test.tsx.snap | 226 +++--
.../profile_picture/profile_picture.test.tsx | 25 +-
.../scroll_to_bottom_toast.test.tsx | 37 +-
.../single_image_view.test.tsx.snap | 849 ++++++++++--------
.../single_image_view.test.tsx | 99 +-
.../__snapshots__/semantic_time.test.tsx.snap | 9 +-
.../timestamp/semantic_time.test.tsx | 24 +-
.../__snapshots__/user_profile.test.tsx.snap | 84 +-
.../user_profile/user_profile.test.tsx | 23 +-
.../__snapshots__/youtube_video.test.tsx.snap | 298 +++---
.../youtube_video/youtube_video.test.tsx | 103 ++-
.../src/tests/react_testing_utils.tsx | 5 +
70 files changed, 4160 insertions(+), 3633 deletions(-)
diff --git a/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap b/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap
index 3e1f83f5a10..7e6a961e8ef 100644
--- a/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap
+++ b/webapp/channels/src/components/__snapshots__/formatted_markdown_message.test.tsx.snap
@@ -1,183 +1,69 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`components/FormattedMarkdownMessage should allow to disable links 1`] = `
-
[link target blank](!https://mattermost.com/)",
- "test.vals": "*Hi* {petName}!",
- }
- }
- onError={[Function]}
- onWarn={[Function]}
- textComponent={Symbol(react.fragment)}
->
-