Skip to content

Commit

Permalink
Fix broken EJScreen Link (#2191)
Browse files Browse the repository at this point in the history
* Update to replace broken EPA link

* Update tests for EPA link change
  • Loading branch information
travis-newby authored Mar 8, 2023
1 parent bf597b5 commit 2d4d167
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -1381,7 +1381,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -1432,7 +1432,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -1551,7 +1551,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -1662,7 +1662,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down
10 changes: 5 additions & 5 deletions client/src/data/copy/methodology.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
/>,
Expand All @@ -620,7 +620,7 @@ export const SOURCE_LINKS = {
defaultMessage={`<link1>National Air Toxics Assessment (NATA)</link1> 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,
}}
/>,
Expand All @@ -629,7 +629,7 @@ export const SOURCE_LINKS = {
defaultMessage={`<link1>Traffic data</link1> 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,
}}
/>,
Expand Down Expand Up @@ -668,7 +668,7 @@ export const SOURCE_LINKS = {
defaultMessage={`<link1>RMP database</link1> 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,
}}
/>,
Expand All @@ -677,7 +677,7 @@ export const SOURCE_LINKS = {
defaultMessage={`<link1>Risk-Screening Environmental Indicators (RSEI) model</link1> 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,
}}
/>,
Expand Down
10 changes: 5 additions & 5 deletions client/src/pages/tests/__snapshots__/methodology.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -2360,7 +2360,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -2411,7 +2411,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -2530,7 +2530,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -2641,7 +2641,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
<a
class="usa-link usa-link--external"
data-cy=""
href="https://www.epa.gov/ejscreen/technical-documentation-ejscreen"
href="https://www.epa.gov/ejscreen/download-ejscreen-data"
rel="noreferrer"
target="_blank"
>
Expand Down

0 comments on commit 2d4d167

Please sign in to comment.