From d00d19e3df333eaa36713338ee591be598d8d2a7 Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Tue, 24 Oct 2023 13:10:20 -0400 Subject: [PATCH 1/4] add more tests for overview Signed-off-by: Thanh Le --- .../__snapshots__/overview.test.tsx.snap | 5398 +++++++++++++++-- .../components/overview/overview.test.tsx | 59 +- 2 files changed, 4826 insertions(+), 631 deletions(-) diff --git a/src/plugins/opensearch_dashboards_overview/public/components/overview/__snapshots__/overview.test.tsx.snap b/src/plugins/opensearch_dashboards_overview/public/components/overview/__snapshots__/overview.test.tsx.snap index 6d92c8759243..1619a4fea3ff 100644 --- a/src/plugins/opensearch_dashboards_overview/public/components/overview/__snapshots__/overview.test.tsx.snap +++ b/src/plugins/opensearch_dashboards_overview/public/components/overview/__snapshots__/overview.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Overview renders with solutions and features 1`] = ` +exports[`Overview renders with news without solutions and without features 1`] = `
-
- -

- -

-
- - - - - - } - image="/plugins/opensearchDashboardsOverview/assets/solutions_opensearch_dashboards_light_2x.png" - title="OpenSearch Dashboards" - titleElement="h3" - titleSize="xs" - /> - - - - - - } - image="/plugins/opensearchDashboardsOverview/assets/solutions_solution_2_light_2x.png" - title="Solution two" - titleElement="h3" - titleSize="xs" - /> - - - - - - } - image="/plugins/opensearchDashboardsOverview/assets/solutions_solution_3_light_2x.png" - title="Solution three" - titleElement="h3" - titleSize="xs" - /> - - - - - - } - image="/plugins/opensearchDashboardsOverview/assets/solutions_solution_4_light_2x.png" - title="Solution four" - titleElement="h3" - titleSize="xs" - /> - - - -
- - -
+`; + +exports[`Overview renders with news, solutions, and features 1`] = ` +
+ + } + /> +
+
+ +

+ +

+
+ + +
+
+
+`; + +exports[`Overview renders with news, with solutions, and without features 1`] = ` +
+ + } + /> +
+
+ +

+ +

+
+ + +
+
+
+`; + +exports[`Overview renders with news, without solutions, and with features 1`] = ` +
+ + } + /> +
+
+ +

+ +

+
+ + +
+
+
+`; + +exports[`Overview renders without news and features, with solutions 1`] = ` +
+ + } + /> +
+
+ +

+ +

+
+ + +
+
+
+`; + +exports[`Overview renders without news and solutions, with features 1`] = ` +
+ + } + /> +
+
+ +

+ +

+
+ + +
+