From b354770b9b1ec4173269830440bd125d64e2320f Mon Sep 17 00:00:00 2001
From: Andrew Azores
Date: Tue, 7 Feb 2023 17:48:45 -0500
Subject: [PATCH] fix settings test
---
src/test/Settings/Settings.test.tsx | 9 +++
.../__snapshots__/Settings.test.tsx.snap | 59 +++++++++++++++++--
2 files changed, 64 insertions(+), 4 deletions(-)
diff --git a/src/test/Settings/Settings.test.tsx b/src/test/Settings/Settings.test.tsx
index 3bfc24f275..94cb432c57 100644
--- a/src/test/Settings/Settings.test.tsx
+++ b/src/test/Settings/Settings.test.tsx
@@ -70,6 +70,15 @@ jest.mock('@app/Settings/AutomatedAnalysisConfig', () => ({
} as UserSetting,
}));
+jest.mock('@app/Settings/ChartCardsConfig', () => ({
+ ChartCardsConfig: {
+ titleKey: 'SETTINGS.CHARTS_CONFIG.TITLE',
+ descConstruct: 'SETTINGS.CHARTS_CONFIG.DESCRIPTION',
+ category: 'SETTINGS.CATEGORIES.DASHBOARD',
+ content: () => Chart Cards Config Component,
+ } as UserSetting,
+}));
+
jest.mock('@app/Settings/CredentialsStorage', () => ({
CredentialsStorage: {
titleKey: 'SETTINGS.CREDENTIALS_STORAGE.TITLE',
diff --git a/src/test/Settings/__snapshots__/Settings.test.tsx.snap b/src/test/Settings/__snapshots__/Settings.test.tsx.snap
index 437b9e6d7d..35f9a88faa 100644
--- a/src/test/Settings/__snapshots__/Settings.test.tsx.snap
+++ b/src/test/Settings/__snapshots__/Settings.test.tsx.snap
@@ -517,6 +517,57 @@ exports[` renders correctly 1`] = `
+
+
+
+
+
+
+
+
+
+ Set configuration options for the behaviour of Metrics cards on the Dashboard.
+
+
+
+
+ Chart Cards Config Component
+
+
+
renders correctly 1`] = `
>
@@ -570,7 +621,7 @@ exports[` renders correctly 1`] = `
renders correctly 1`] = `
>
@@ -621,7 +672,7 @@ exports[` renders correctly 1`] = `