From b0b2bc387b91433f0edda76a7db70dc2436a3c4d Mon Sep 17 00:00:00 2001 From: Vim USDS Date: Thu, 8 Sep 2022 23:23:14 -0700 Subject: [PATCH] update snapshots --- .../__snapshots__/areaDetail.test.tsx.snap | 298 ++++++++---------- .../components/Indicator/Indicator.test.tsx | 59 +--- .../__snapshots__/Indicator.test.tsx.snap | 70 +--- 3 files changed, 148 insertions(+), 279 deletions(-) diff --git a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap index bf25cf63..dc3db5b1 100644 --- a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap +++ b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap @@ -287,12 +287,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for ISL th -
- an icon for the down arrow -
+
@@ -329,12 +324,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for ISL th
-
- an icon for the up arrow -
+
@@ -374,12 +364,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for ISL th
-
- an icon for the down arrow -
+
@@ -413,7 +398,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for ISL
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -950,7 +942,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -1090,7 +1081,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -1267,12 +1259,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT th
-
- an icon for the up arrow -
+
@@ -1301,7 +1288,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -1472,7 +1460,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -1699,7 +1692,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -1839,7 +1831,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -2050,12 +2045,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT th
-
- an icon for the up arrow -
+
@@ -2084,7 +2074,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the up arrow -
+
@@ -2166,12 +2153,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT th
-
- an icon for the down arrow -
+
@@ -2210,12 +2192,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT 98%
-
- an icon for the up arrow -
+
@@ -2279,7 +2256,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for NAT
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -2765,12 +2745,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE th
-
- an icon for the up arrow -
+
@@ -2812,12 +2787,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE th
-
- an icon for the down arrow -
+
@@ -2881,7 +2851,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the down arrow -
+
@@ -3108,7 +3083,9 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE
-
+
+ -- +
an icon to represent data is unavailable
-
- an icon for the up arrow -
+
@@ -3190,12 +3162,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE th
-
- an icon for the down arrow -
+
@@ -3234,12 +3201,7 @@ exports[`rendering of the Islan areas in AreaDetail checks if indicators for PUE 98%
-
- an icon for the up arrow -
+
diff --git a/client/src/components/Indicator/Indicator.test.tsx b/client/src/components/Indicator/Indicator.test.tsx index f648d80e..92ab4fdf 100644 --- a/client/src/components/Indicator/Indicator.test.tsx +++ b/client/src/components/Indicator/Indicator.test.tsx @@ -47,68 +47,11 @@ describe('rendering of the Indicator', () => { }); describe('test rendering of Indicator value icons', () => { - it('renders the up arrow when value is above threshold', () => { + it('renders the unavailable icon when the value is null', () => { const {asFragment} = render( - , - ); - expect(asFragment()).toMatchSnapshot(); - screen.getByAltText(EXPLORE_COPY.SIDE_PANEL_VALUES.IMG_ALT_TEXT.ARROW_UP.defaultMessage); - }); - it('renders the down arrow when the value is above the threshold', () => { - const {asFragment} = render( - - - , - ); - expect(asFragment()).toMatchSnapshot(); - screen.getByAltText(EXPLORE_COPY.SIDE_PANEL_VALUES.IMG_ALT_TEXT.ARROW_DOWN.defaultMessage); - }); - - it('renders the down arrow when the value is zero', () => { - const {asFragment} = render( - - - , - ); - expect(asFragment()).toMatchSnapshot(); - screen.getByAltText(EXPLORE_COPY.SIDE_PANEL_VALUES.IMG_ALT_TEXT.ARROW_DOWN.defaultMessage); - }); - - it('renders the unavailable icon when the value is a boolean null', () => { - const {asFragment} = render( - - - , - ); - expect(asFragment()).toMatchSnapshot(); - screen.getByAltText(EXPLORE_COPY.SIDE_PANEL_VALUES.IMG_ALT_TEXT.UNAVAILABLE.defaultMessage); - }); - - it('renders the unavailable icon when the value is a percentile null', () => { - const {asFragment} = render( - - , ); diff --git a/client/src/components/Indicator/__snapshots__/Indicator.test.tsx.snap b/client/src/components/Indicator/__snapshots__/Indicator.test.tsx.snap index 4e44d9f5..96a48b8f 100644 --- a/client/src/components/Indicator/__snapshots__/Indicator.test.tsx.snap +++ b/client/src/components/Indicator/__snapshots__/Indicator.test.tsx.snap @@ -20,12 +20,7 @@ exports[`rendering of the Indicator checks if component renders 1`] = ` 97%
-
- an icon for the up arrow -
+
@@ -62,12 +57,7 @@ exports[`rendering of the Indicator checks if the flooring function works 1`] = 42%
-
- an icon for the up arrow -
+
@@ -99,7 +89,9 @@ exports[`renders value correctly for Former defense sites checks if it renders n
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable
-
+
+ -- +
an icon to represent data is unavailable `; -exports[`test rendering of Indicator value icons renders the down arrow when the value is above the threshold 1`] = ` - - an icon for the down arrow - -`; - -exports[`test rendering of Indicator value icons renders the down arrow when the value is zero 1`] = ` - - an icon for the down arrow - -`; - -exports[`test rendering of Indicator value icons renders the unavailable icon when the value is a boolean null 1`] = ` +exports[`test rendering of Indicator value icons renders the unavailable icon when the value is null 1`] = ` an icon to represent data is unavailable `; -exports[`test rendering of Indicator value icons renders the unavailable icon when the value is a percentile null 1`] = ` - - an icon to represent data is unavailable - -`; - -exports[`test rendering of Indicator value icons renders the up arrow when value is above threshold 1`] = ` - - an icon for the up arrow - -`; - exports[`test rendering of Indicator value sub-text renders missing data 1`] = `
@@ -429,7 +389,11 @@ exports[`test rendering of Indicator value sub-text renders the "below 90 percen `; -exports[`test that the unit suffix renders correctly renders correctly when the value is a null 1`] = ``; +exports[`test that the unit suffix renders correctly renders correctly when the value is a null 1`] = ` + + -- + +`; exports[`test that the unit suffix renders correctly renders correctly when the value is a percent 1`] = `