From 5098669cfbef8f871f26edd7a3a15620341223bd Mon Sep 17 00:00:00 2001 From: Tanishq Agarwal <68327491+047pegasus@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:52:48 +0530 Subject: [PATCH] [MM57343] Add unit tests to Team Groups Management Modal (#28272) * added basic unit tests for team_groups_manage_modal * removed errorenously added getIntlMock from test_helpers * added additional general tests * updated test suite * updated snapshot update using jest * fixed minor linting problems * fixed unintended snapshot changes * modified test case to wait for element removal --- .../channels/src/components/confirm_modal.tsx | 2 + .../team_groups_manage_modal.test.tsx | 55 +++++++++++++++++++ .../team_groups_manage_modal.tsx | 9 ++- .../menu/menu_items/menu_item.test.tsx | 2 + .../widgets/menu/menu_items/menu_item.tsx | 1 + 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 webapp/channels/src/components/team_groups_manage_modal/team_groups_manage_modal.test.tsx diff --git a/webapp/channels/src/components/confirm_modal.tsx b/webapp/channels/src/components/confirm_modal.tsx index e33dfa75e7..f4fdc8c00c 100644 --- a/webapp/channels/src/components/confirm_modal.tsx +++ b/webapp/channels/src/components/confirm_modal.tsx @@ -156,6 +156,7 @@ export default class ConfirmModal extends React.Component { cancelButton = (