From 169b86f273b49018bcaa84e6443ca6bc50457517 Mon Sep 17 00:00:00 2001 From: Rob Brackett Date: Sun, 26 Jan 2025 17:15:34 -0800 Subject: [PATCH] Update client test snapshots (#8) We've had a bunch of changes to the client UI without CI running, and those changes hove broken snapshot tests. Since the changes all seem reasonable, this just updates the snapshots to allow the tests to pass. --- .../datasetContainer.test.tsx.snap | 20 +- .../__snapshots__/J40Footer.spec.tsx.snap | 154 +---- .../__snapshots__/J40Header.test.tsx.snap | 189 +----- .../__snapshots__/UpdateBanner.test.tsx.snap | 6 +- client/src/intl/en.json | 2 +- .../tests/__snapshots__/about.test.tsx.snap | 549 +----------------- .../tests/__snapshots__/contact.test.tsx.snap | 343 +---------- .../__snapshots__/downloads.test.tsx.snap | 360 +----------- .../freqAskedQuestions.test.tsx.snap | 409 +------------ .../__snapshots__/methodology.test.tsx.snap | 380 +----------- .../tests/__snapshots__/privacy.test.tsx.snap | 343 +---------- .../techSupportDoc.test.tsx.snap | 343 +---------- 12 files changed, 32 insertions(+), 3066 deletions(-) diff --git a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap index cc528c8c..ba1dab5b 100644 --- a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap +++ b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap @@ -49,25 +49,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- - - -
+ />
-
-
-
- Contact -
-
    - -
-
-
-
@@ -132,7 +34,7 @@ exports[`J40Footer renders correctly 1`] = ` @@ -152,60 +54,6 @@ exports[`J40Footer renders correctly 1`] = `
- -
- - - -
`; diff --git a/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap b/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap index 1e6343c7..3c9a5ab6 100644 --- a/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap +++ b/client/src/components/J40Header/__snapshots__/J40Header.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the J40Header checks if component renders 1`] = ` data-testid="header" role="banner" > -
-
-
-
-
-
-
- U.S. flag -
-
-

- An official website of the United States government -

- -
- -
-
- -
-
-
- language icon for selecting language - - English - - - Español - -
-
-
- This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
-
  • - - Contact - -
  • diff --git a/client/src/components/UpdateBanner/__snapshots__/UpdateBanner.test.tsx.snap b/client/src/components/UpdateBanner/__snapshots__/UpdateBanner.test.tsx.snap index 61fb151c..c3e31fd0 100644 --- a/client/src/components/UpdateBanner/__snapshots__/UpdateBanner.test.tsx.snap +++ b/client/src/components/UpdateBanner/__snapshots__/UpdateBanner.test.tsx.snap @@ -13,7 +13,7 @@ exports[`rendering of the UpdateBanner renders large version before cutoff date

    - Version 2.0 of the tool is now available + This is an unofficial copy of the CEJST Tool. We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government

    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
  • diff --git a/client/src/intl/en.json b/client/src/intl/en.json index bc723ab6..808cff0e 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -60,7 +60,7 @@ "description": "Navigate to the About page. This is the paragraph 1" }, "about.page.paragraph.2": { - "defaultMessage": "CEQ will update the tool, after reviewing public feedback, research, and the availability of new data. The current version of the tool is version {version}.", + "defaultMessage": "The current version of the tool is version {version}.", "description": "Navigate to the About page. This is the paragraph 4" }, "about.page.send.feedback.email.link": { diff --git a/client/src/pages/tests/__snapshots__/about.test.tsx.snap b/client/src/pages/tests/__snapshots__/about.test.tsx.snap index f4d61171..f82d1e82 100644 --- a/client/src/pages/tests/__snapshots__/about.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/about.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -416,23 +231,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis > About - - -

    - CEQ will update the tool, after reviewing public feedback, - research, and the availability of new data. The current version of the + The current version of the tool is version 2.0.

    @@ -507,192 +304,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
  • -
    -

    - Get involved -

    -
    -
    -
    -
    - Send feedback -
    -
    -
    -

    - Send feedback -

    -

    - - Have ideas for the tool? Contact the Council on Environmental Quality’s (CEQ). - -

    - -
    -
    -
    - -
    -
    -
    -
    -
    -
    - Join the open source community -
    -
    -
    -

    - Join the open source community -

    -

    - - The tool’s code is open source, which means it is available for the public to view and contribute to it. - -

    - -
    -
    -
    - -
    -
    -
    -
    -
    -
    -

    - How you can help improve the map -

    - -
    -
    -
    `; diff --git a/client/src/pages/tests/__snapshots__/contact.test.tsx.snap b/client/src/pages/tests/__snapshots__/contact.test.tsx.snap index d6fb1ce2..a2910887 100644 --- a/client/src/pages/tests/__snapshots__/contact.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/contact.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -493,104 +308,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -609,7 +326,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis @@ -629,60 +346,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
  • - -
    - - - -
    `; diff --git a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap index a9bbcdfe..b71a0c49 100644 --- a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -414,23 +229,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

    Downloads

    - - -
    -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -741,7 +441,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis @@ -761,60 +461,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
  • - -
    - - - -
    `; diff --git a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap index d5acaf2d..857ba229 100644 --- a/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/freqAskedQuestions.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -414,23 +229,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

    Frequently asked questions

    - - - + />

    @@ -1155,104 +906,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -1271,7 +924,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis @@ -1291,60 +944,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

  • - -
    - - - -
    `; diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap index 07aabf0b..7380ab89 100644 --- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -414,23 +229,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

    Methodology

    - - - + />
  • -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -3298,7 +2980,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis @@ -3318,60 +3000,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    - -
    - - - -
    `; diff --git a/client/src/pages/tests/__snapshots__/privacy.test.tsx.snap b/client/src/pages/tests/__snapshots__/privacy.test.tsx.snap index e2ac79d6..09db50c7 100644 --- a/client/src/pages/tests/__snapshots__/privacy.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/privacy.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the Privacy Policy page matches Privacy Policy page snapsh data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -617,104 +432,6 @@ exports[`rendering of the Privacy Policy page matches Privacy Policy page snapsh
    -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -733,7 +450,7 @@ exports[`rendering of the Privacy Policy page matches Privacy Policy page snapsh @@ -753,60 +470,6 @@ exports[`rendering of the Privacy Policy page matches Privacy Policy page snapsh
  • - -
    - - - -
    `; diff --git a/client/src/pages/tests/__snapshots__/techSupportDoc.test.tsx.snap b/client/src/pages/tests/__snapshots__/techSupportDoc.test.tsx.snap index 693adc6d..6fb86f6c 100644 --- a/client/src/pages/tests/__snapshots__/techSupportDoc.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/techSupportDoc.test.tsx.snap @@ -7,187 +7,12 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis data-testid="header" role="banner" > -
    -
    -
    -
    -
    -
    -
    - U.S. flag -
    -
    -

    - An official website of the United States government -

    - -
    - -
    -
    - -
    -
    -
    - language icon for selecting language - - English - - - Español - -
    -
    -
    - This tool has been updated. + This is an unofficial copy of the CEJST Tool. - The 2.0 version of the tool was released on Dec 20, 2024. + We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.
    -
  • - - Contact - -
  • @@ -433,104 +248,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
    -
    -
    -
    - Contact -
    -
      - -
    -
    -
    -
    @@ -549,7 +266,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis @@ -569,60 +286,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
  • - -
    - - - -
    `;