From 366d1613b768c7154a423357f06683f0064e7cbd Mon Sep 17 00:00:00 2001
From: Deepakumar V U <31596670+deepakumarvu@users.noreply.github.com>
Date: Mon, 6 Nov 2023 15:49:38 +0530
Subject: [PATCH] [MM-55106] Replace usage of LocalizedIcon in
'system_notice.tsx' with i/span tags (#25268)
---
.../root/__snapshots__/root.test.tsx.snap | 2 +-
.../__snapshots__/system_notice.test.tsx.snap | 1281 ++++++++++++++---
.../system_notice/system_notice.test.tsx | 30 +-
.../system_notice/system_notice.tsx | 14 +-
4 files changed, 1075 insertions(+), 252 deletions(-)
diff --git a/webapp/channels/src/components/root/__snapshots__/root.test.tsx.snap b/webapp/channels/src/components/root/__snapshots__/root.test.tsx.snap
index c95df50d77..1495099598 100644
--- a/webapp/channels/src/components/root/__snapshots__/root.test.tsx.snap
+++ b/webapp/channels/src/components/root/__snapshots__/root.test.tsx.snap
@@ -94,7 +94,7 @@ exports[`components/Root Routes Should mount public product routes 1`] = `
-
+
diff --git a/webapp/channels/src/components/system_notice/__snapshots__/system_notice.test.tsx.snap b/webapp/channels/src/components/system_notice/__snapshots__/system_notice.test.tsx.snap
index 8e06026188..91169f088e 100644
--- a/webapp/channels/src/components/system_notice/__snapshots__/system_notice.test.tsx.snap
+++ b/webapp/channels/src/components/system_notice/__snapshots__/system_notice.test.tsx.snap
@@ -1,342 +1,1161 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`components/SystemNotice should match snapshot for admin, admin notice 1`] = `
-
-
-
-
- some title
-
- some body
-
-
-
+
+
+
+
+
-
-
-
+
`;
exports[`components/SystemNotice should match snapshot for admin, regular notice 1`] = `
-
-
-
-
- some title
+
+
+
+
+
- some body
-
-
-
-
+ some body
+
-
-
+
+
+
+ Remind Me Later
+
+
+
+
+
+
+ Don't Show Again
+
+
+
+
-
+
`;
exports[`components/SystemNotice should match snapshot for regular user, admin and regular notice 1`] = `
-
-
-
-
- some title2
+
+
+
+
+
- some body2
-
-
-
-
+ some body2
+
-
-
+
+
+
+ Remind Me Later
+
+
+
+
+
+
+ Don't Show Again
+
+
+
+
-
+
`;
-exports[`components/SystemNotice should match snapshot for regular user, admin notice 1`] = `""`;
+exports[`components/SystemNotice should match snapshot for regular user, admin notice 1`] = `
+
+`;
-exports[`components/SystemNotice should match snapshot for regular user, dismissed notice 1`] = `""`;
+exports[`components/SystemNotice should match snapshot for regular user, dismissed notice 1`] = `
+
+`;
-exports[`components/SystemNotice should match snapshot for regular user, dont show again notice 1`] = `""`;
+exports[`components/SystemNotice should match snapshot for regular user, dont show again notice 1`] = `
+
+`;
-exports[`components/SystemNotice should match snapshot for regular user, no notice 1`] = `""`;
+exports[`components/SystemNotice should match snapshot for regular user, no notice 1`] = `
+
+`;
exports[`components/SystemNotice should match snapshot for regular user, regular notice 1`] = `
-
-
-
-
- some title
+
+
+
+
+
- some body
-
-
-
-
+ some body
+
-
-
+
+
+
+ Remind Me Later
+
+
+
+
+
+
+ Don't Show Again
+
+
+
+
-
+
`;
-exports[`components/SystemNotice should match snapshot for show function returning false 1`] = `""`;
+exports[`components/SystemNotice should match snapshot for show function returning false 1`] = `
+
+`;
exports[`components/SystemNotice should match snapshot for show function returning true 1`] = `
-
-
-
-
- some title
+
+
+
+
+
- some body
-
-
-
-
+ some body
+
-
-
+
+
+
+ Remind Me Later
+
+
+
+
+
+
+ Don't Show Again
+
+
+
+
-
+
`;
exports[`components/SystemNotice should match snapshot for with allowForget equal false 1`] = `
-
-
-
-
- some title
+
+
+
+
+
- some body
-
-
-
+ some title
+
+ some body
+
+
+
+
+ Remind Me Later
+
+
+
+
-
+
`;
exports[`components/SystemNotice should match snapshot when a custom icon is passed 1`] = `
-