From 857755ac51eecd00c1966b1a09fd93c1cb9a5182 Mon Sep 17 00:00:00 2001 From: Dan Dong Date: Thu, 5 Sep 2024 12:37:41 -0700 Subject: [PATCH] Updated Snapshot Tests --- .../__snapshots__/ContentPanel.test.tsx.snap | 20 ++-- .../ChannelDetails.test.tsx.snap | 70 +++++++----- .../__snapshots__/Channels.test.tsx.snap | 36 +++--- .../DetailsListModal.test.tsx.snap | 52 ++++++++- .../DetailsTableModal.test.tsx.snap | 104 ++++++++++++++++-- .../ChannelNamePanel.test.tsx.snap | 20 ++-- .../__snapshots__/CreateChannel.test.tsx.snap | 10 +- .../CreateRecipientGroup.test.tsx.snap | 10 +- .../CreateSESSender.test.tsx.snap | 30 +++-- .../__snapshots__/CreateSender.test.tsx.snap | 30 +++-- .../__snapshots__/EmailGroups.test.tsx.snap | 10 +- .../__snapshots__/EmailSenders.test.tsx.snap | 20 ++-- .../RecipientGroupsTable.test.tsx.snap | 36 +++--- .../__snapshots__/SendersTable.test.tsx.snap | 36 +++--- .../__snapshots__/Main.test.tsx.snap | 36 +++--- 15 files changed, 358 insertions(+), 162 deletions(-) diff --git a/public/components/__tests__/__snapshots__/ContentPanel.test.tsx.snap b/public/components/__tests__/__snapshots__/ContentPanel.test.tsx.snap index 4a277201..13d35e14 100644 --- a/public/components/__tests__/__snapshots__/ContentPanel.test.tsx.snap +++ b/public/components/__tests__/__snapshots__/ContentPanel.test.tsx.snap @@ -11,11 +11,13 @@ exports[` spec renders the component 1`] = `
-

- Testing -

+

+ Testing +

+
spec renders with empty actions 1`] = `
-

- Testing -

+

+ Testing +

+

spec handles a non-existing channel 1`] = `
-

- - -

+

+ - +

+
spec handles a non-existing channel 1`] = `
-

- Name and description -

+

+ Name and description +

+

spec handles a non-existing channel 1`] = `
-

- Configurations -

+

+ Configurations +

+

spec renders a specific channel 1`] = `
-

- - -

+

+ - +

+
spec renders a specific channel 1`] = `
-

- Name and description -

+

+ Name and description +

+

spec renders a specific channel 1`] = `
-

- Configurations -

+

+ Configurations +

+

spec renders the component 1`] = `
-

- - -

+

+ - +

+
spec renders the empty component 1`] = `
-

- Channels - - (0) - -

+

+ Channels + + (0) + +

+
spec renders the empty component 1`] = `
-

- No channels to display -

+

+ No channels to display +

+
@@ -504,7 +508,11 @@ exports[` spec renders the empty component 1`] = `
- To send or receive notifications, you will need to create a notification channel. +
+ "To send or receive notifications, you will need to create a notification channel." +
spec renders the component 1`] = `
- test header +
+

+ test header +

+
spec renders the component 1`] = `
- test header +
+

+ test header +

+
spec renders the component 1`] = `
- test header +
+

+ test header +

+
spec renders the component 1`] = `
- test header +
+

+ test header +

+
spec renders the component 1`] = `
- test header +
+

+ test header +

+
spec renders the component 1`] = `
- test header + +
+

+ test header +

+
+
diff --git a/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap b/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap index 1df1f38b..5ff99ef8 100644 --- a/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap +++ b/public/pages/Channels/__tests__/__snapshots__/DetailsTableModal.test.tsx.snap @@ -82,7 +82,13 @@ exports[` spec renders headers 1`] = `
- test header +
+

+ test header +

+
spec renders headers 1`] = `
- test header +
+

+ test header +

+
spec renders headers 1`] = `
- test header +
+

+ test header +

+
spec renders headers 1`] = `
- test header +
+

+ test header +

+
spec renders headers 1`] = `
- test header +
+

+ test header +

+
spec renders headers 1`] = `
- test header + +
+

+ test header +

+
+
@@ -1935,7 +1975,13 @@ exports[` spec renders parameters 1`] = `
- test header +
+

+ test header +

+
spec renders parameters 1`] = `
- test header +
+

+ test header +

+
spec renders parameters 1`] = `
- test header +
+

+ test header +

+
spec renders parameters 1`] = `
- test header +
+

+ test header +

+
spec renders parameters 1`] = `
- test header +
+

+ test header +

+
spec renders parameters 1`] = `
- test header + +
+

+ test header +

+
+
diff --git a/public/pages/CreateChannel/__tests__/__snapshots__/ChannelNamePanel.test.tsx.snap b/public/pages/CreateChannel/__tests__/__snapshots__/ChannelNamePanel.test.tsx.snap index 0e4b7f41..303884b0 100644 --- a/public/pages/CreateChannel/__tests__/__snapshots__/ChannelNamePanel.test.tsx.snap +++ b/public/pages/CreateChannel/__tests__/__snapshots__/ChannelNamePanel.test.tsx.snap @@ -11,11 +11,13 @@ exports[` spec renders errors 1`] = `
-

- Name and description -

+

+ Name and description +

+

spec renders the component 1`] = `
-

- Name and description -

+

+ Name and description +

+

spec renders the component 1`] = ` -

- Create channel -

+

+ Create channel +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/CreateRecipientGroup.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/CreateRecipientGroup.test.tsx.snap index 3bd7021d..4009d0b8 100644 --- a/public/pages/Emails/__tests__/__snapshots__/CreateRecipientGroup.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/CreateRecipientGroup.test.tsx.snap @@ -1,9 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` spec renders the component 1`] = ` -

- Create recipient group -

+

+ Create recipient group +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/CreateSESSender.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/CreateSESSender.test.tsx.snap index 30e8145c..97b70161 100644 --- a/public/pages/Emails/__tests__/__snapshots__/CreateSESSender.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/CreateSESSender.test.tsx.snap @@ -1,25 +1,31 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` spec handles failed requests 1`] = ` -

- Edit SES sender -

+

+ Edit SES sender +

+ `; exports[` spec renders the component 1`] = ` -

- Create SES sender -

+

+ Create SES sender +

+ `; exports[` spec renders the component for editing 1`] = ` -

- Edit SES sender -

+

+ Edit SES sender +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/CreateSender.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/CreateSender.test.tsx.snap index b6ff392a..68449f39 100644 --- a/public/pages/Emails/__tests__/__snapshots__/CreateSender.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/CreateSender.test.tsx.snap @@ -1,25 +1,31 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` spec handles failed requests 1`] = ` -

- Edit SMTP sender -

+

+ Edit SMTP sender +

+ `; exports[` spec renders the component 1`] = ` -

- Create SMTP sender -

+

+ Create SMTP sender +

+ `; exports[` spec renders the component for editing 1`] = ` -

- Edit SMTP sender -

+

+ Edit SMTP sender +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/EmailGroups.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/EmailGroups.test.tsx.snap index ed8880f6..a4b40b5b 100644 --- a/public/pages/Emails/__tests__/__snapshots__/EmailGroups.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/EmailGroups.test.tsx.snap @@ -1,9 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` spec renders the component 1`] = ` -

- Email recipient groups -

+

+ Email recipient groups +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/EmailSenders.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/EmailSenders.test.tsx.snap index 1483fdaa..00e42cc1 100644 --- a/public/pages/Emails/__tests__/__snapshots__/EmailSenders.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/EmailSenders.test.tsx.snap @@ -1,17 +1,21 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` spec renders the component with SMTP config type 1`] = ` -

- Email senders -

+

+ Email senders +

+ `; exports[` spec renders the component without SMTP config type 1`] = ` -

- Email senders -

+

+ Email senders +

+ `; diff --git a/public/pages/Emails/__tests__/__snapshots__/RecipientGroupsTable.test.tsx.snap b/public/pages/Emails/__tests__/__snapshots__/RecipientGroupsTable.test.tsx.snap index ebb37281..fb2a223c 100644 --- a/public/pages/Emails/__tests__/__snapshots__/RecipientGroupsTable.test.tsx.snap +++ b/public/pages/Emails/__tests__/__snapshots__/RecipientGroupsTable.test.tsx.snap @@ -11,16 +11,18 @@ exports[` spec renders empty state 1`] = `
-

- Recipient groups - - (0) - -

+

+ Recipient groups + + (0) + +

+
spec renders empty state 1`] = `
-

- No recipient groups to display -

+

+ No recipient groups to display +

+
@@ -382,7 +386,11 @@ exports[` spec renders empty state 1`] = `
- Use an email group to manage a list of email addresses you frequently send at a time. You can select recipient groups when configuring email channels. +
+ Use an email group to manage a list of email addresses you frequently send at a time. You can select recipient groups when configuring email channels. +
spec renders empty state 1`] = `
-

- SMTP senders - - (0) - -

+

+ SMTP senders + + (0) + +

+
spec renders empty state 1`] = `
-

- No SMTP senders to display -

+

+ No SMTP senders to display +

+
@@ -484,7 +488,11 @@ exports[` spec renders empty state 1`] = `
- Set up an outbound email server by creating a sender. You will select a sender when configuring email channels. +
+ Set up an outbound email server by creating a sender. You will select a sender when configuring email channels. +
spec renders the component 1`] = `
-

- Channels - - (0) - -

+

+ Channels + + (0) + +

+
spec renders the component 1`] = `
-

- No channels to display -

+

+ No channels to display +

+
@@ -609,7 +613,11 @@ exports[`
spec renders the component 1`] = `
- To send or receive notifications, you will need to create a notification channel. +
+ "To send or receive notifications, you will need to create a notification channel." +