From 2d4d16797617f801ce7dde71793280ca3bdd23c7 Mon Sep 17 00:00:00 2001
From: Travis Newby <83976412+travis-newby@users.noreply.github.com>
Date: Wed, 8 Mar 2023 07:20:15 -0600
Subject: [PATCH] Fix broken EJScreen Link (#2191)
* Update to replace broken EPA link
* Update tests for EPA link change
---
.../tests/__snapshots__/datasetContainer.test.tsx.snap | 10 +++++-----
client/src/data/copy/methodology.tsx | 10 +++++-----
.../tests/__snapshots__/methodology.test.tsx.snap | 10 +++++-----
3 files changed, 15 insertions(+), 15 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 1d8b7c39..4f14f5ae 100644
--- a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap
+++ b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap
@@ -563,7 +563,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -1381,7 +1381,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -1432,7 +1432,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -1551,7 +1551,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -1662,7 +1662,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
diff --git a/client/src/data/copy/methodology.tsx b/client/src/data/copy/methodology.tsx
index 7053b84d..277afa47 100644
--- a/client/src/data/copy/methodology.tsx
+++ b/client/src/data/copy/methodology.tsx
@@ -611,7 +611,7 @@ export const SOURCE_LINKS = {
`}
description={'Navigate to the Methodology page. This is the source link for EPA OAR'}
values={{
- link1: linkFn('https://www.epa.gov/ejscreen/technical-documentation-ejscreen', false, true),
+ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true),
date17: DATE_RANGE.SEVENTEEN,
}}
/>,
@@ -620,7 +620,7 @@ export const SOURCE_LINKS = {
defaultMessage={`National Air Toxics Assessment (NATA) from {date14} as compiled by EPA's EJScreen`}
description={'Navigate to the Methodology page. This is the source link for EPA NATA'}
values={{
- link1: linkFn('https://www.epa.gov/ejscreen/technical-documentation-ejscreen', false, true),
+ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true),
date14: DATE_RANGE.FOURTEEN,
}}
/>,
@@ -629,7 +629,7 @@ export const SOURCE_LINKS = {
defaultMessage={`Traffic data from {date17} as compiled by EPA's EJScreen`}
description={'Navigate to the Methodology page. This is the source link for DOT EPA'}
values={{
- link1: linkFn('https://www.epa.gov/ejscreen/technical-documentation-ejscreen', false, true),
+ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true),
date17: DATE_RANGE.SEVENTEEN,
}}
/>,
@@ -668,7 +668,7 @@ export const SOURCE_LINKS = {
defaultMessage={`RMP database from {date20} as compiled by EPA’s EJScreen`}
description={'Navigate to the Methodology page. This is the source link for EPA RMP'}
values={{
- link1: linkFn('https://www.epa.gov/ejscreen/technical-documentation-ejscreen', false, true),
+ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true),
date20: DATE_RANGE.TWENTY,
}}
/>,
@@ -677,7 +677,7 @@ export const SOURCE_LINKS = {
defaultMessage={`Risk-Screening Environmental Indicators (RSEI) model from {date20} as compiled by EPA’s EJScreen`}
description={'Navigate to the Methodology page. This is the source link for EPA RSEI'}
values={{
- link1: linkFn('https://www.epa.gov/ejscreen/technical-documentation-ejscreen', false, true),
+ link1: linkFn('https://www.epa.gov/ejscreen/download-ejscreen-data', false, true),
date20: DATE_RANGE.TWENTY,
}}
/>,
diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap
index 15231f8c..fc5f4b7f 100644
--- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap
+++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap
@@ -1542,7 +1542,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -2360,7 +2360,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -2411,7 +2411,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -2530,7 +2530,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
@@ -2641,7 +2641,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis