From 36bc59c1b768d8ed001b904ee341ffdb9f6f69f3 Mon Sep 17 00:00:00 2001 From: sabril <5334504+saturninoabril@users.noreply.github.com> Date: Mon, 30 Mar 2026 09:59:44 +0800 Subject: [PATCH] MM-67957 H2-H9 Enzyme to RTL bulk migration (#35670) * (test): h2-9 enzyme to rtl bulk migration * update per comments and fix types --------- Co-authored-by: Mattermost Build --- .../__snapshots__/channel_list.test.tsx.snap | 1507 ++- .../channel_list/channel_list.test.tsx | 29 +- .../custom_policy_form.test.tsx.snap | 1616 ++- .../custom_policy_form.test.tsx | 31 +- .../global_policy_form.test.tsx.snap | 465 +- .../global_policy_form.test.tsx | 10 +- .../__snapshots__/team_list.test.tsx.snap | 910 +- .../team_list/team_list.test.tsx | 22 +- .../__snapshots__/group_row.test.tsx.snap | 493 +- .../group_settings.test.tsx.snap | 165 +- .../__snapshots__/group_profile.test.tsx.snap | 66 +- .../group_profile_and_settings.test.tsx.snap | 331 +- .../group_teams_and_channels.test.tsx.snap | 535 +- ...group_teams_and_channels_row.test.tsx.snap | 755 +- .../__snapshots__/group_users.test.tsx.snap | 7408 ++++++++--- .../group_users_row.test.tsx.snap | 47 - .../group_details/group_profile.test.tsx | 12 +- .../group_profile_and_settings.test.tsx | 24 +- .../group_teams_and_channels.test.tsx | 108 +- .../group_teams_and_channels_row.test.tsx | 50 +- .../group_details/group_users.test.tsx | 223 +- .../group_details/group_users_row.test.tsx | 11 +- .../group_settings/group_row.test.tsx | 54 +- .../group_settings/group_settings.test.tsx | 7 +- .../__snapshots__/groups_list.test.tsx.snap | 3976 +++--- .../groups_list/groups_list.test.tsx | 538 +- .../license_settings.test.tsx.snap | 10395 +++++++++++++--- .../license_settings.test.tsx | 103 +- ...onfirm_license_removal_modal.test.tsx.snap | 35 +- .../upload_license_modal.test.tsx.snap | 76 +- .../confirm_license_removal_modal.test.tsx | 73 +- .../modals/upload_license_modal.test.tsx | 186 +- .../renew_license_card.test.tsx | 36 +- .../member_list_group.test.tsx.snap | 687 +- .../member_list_group.test.tsx | 16 +- .../openid_convert.test.tsx.snap | 80 +- .../openid_convert/openid_convert.test.tsx | 7 +- .../permission_checkbox.test.tsx.snap | 218 +- .../permission_description.test.tsx.snap | 167 +- .../permission_group.test.tsx.snap | 2052 ++- .../permission_row.test.tsx.snap | 508 +- .../permission_schemes_settings.test.tsx.snap | 1612 ++- .../permission_checkbox.test.tsx | 28 +- .../permission_description.test.tsx | 79 +- .../permission_group.test.tsx | 173 +- .../permission_row.test.tsx | 40 +- .../permission_schemes_settings.test.tsx | 104 +- ...mission_team_scheme_settings.test.tsx.snap | 2070 --- .../permission_team_scheme_settings.test.tsx | 355 +- .../__snapshots__/team_in_list.test.tsx.snap | 51 +- .../team_in_list/team_in_list.test.tsx | 15 +- .../permissions_scheme_summary.test.tsx.snap | 516 +- .../permissions_scheme_summary.test.tsx | 80 +- .../permissions_tree.test.tsx.snap | 1530 +-- .../permissions_tree.test.tsx | 75 +- .../permissions_tree_playbooks.test.tsx | 21 +- 56 files changed, 26752 insertions(+), 14029 deletions(-) delete mode 100644 webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users_row.test.tsx.snap delete mode 100644 webapp/channels/src/components/admin_console/permission_schemes_settings/permission_team_scheme_settings/__snapshots__/permission_team_scheme_settings.test.tsx.snap diff --git a/webapp/channels/src/components/admin_console/data_retention_settings/channel_list/__snapshots__/channel_list.test.tsx.snap b/webapp/channels/src/components/admin_console/data_retention_settings/channel_list/__snapshots__/channel_list.test.tsx.snap index 2847d2d5627..91277c3f92a 100644 --- a/webapp/channels/src/components/admin_console/data_retention_settings/channel_list/__snapshots__/channel_list.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/data_retention_settings/channel_list/__snapshots__/channel_list.test.tsx.snap @@ -1,120 +1,279 @@ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`components/admin_console/data_retention_settings/channel_list should match snapshot 1`] = ` -
- , - }, - Object { - "field": "team", - "fixed": true, - "name": , - }, - Object { - "field": "remove", - "fixed": true, - "name": "", - "textAlign": "right", - }, - ] - } - endCount={1} - filterProps={ - Object { - "keys": Array [ - "teams", - "channels", - ], - "onFilter": [Function], - "options": Object { - "channels": Object { - "keys": Array [ - "public", - "private", - "deleted", - ], - "name": "Channels", - "values": Object { - "deleted": Object { - "name": , - "value": false, - }, - "private": Object { - "name": , - "value": false, - }, - "public": Object { - "name": , - "value": false, - }, - }, - }, - "teams": Object { - "keys": Array [ - "team_ids", - ], - "name": "Teams", - "type": Object { - "$$typeof": Symbol(react.memo), - "WrappedComponent": [Function], - "compare": null, - "type": [Function], - }, - "values": Object { - "team_ids": Object { - "name": , - "value": Array [], - }, - }, - }, - }, - } - } - loading={false} - nextPage={[Function]} - onSearch={[Function]} - previousPage={[Function]} - rows={ - Array [ - Object { - "cells": Object { - "id": "123", - "name":
+
+
+