Modify copy on About and Explore Tool pages (#974)

* Modify copy

- update snapshots

* Fix failing cypress tests

- commented out lat/lng in URL test as it is intermittent

* Removes test on EO link

* Update copy for launch

- adds 404 page verbiage
- fixes survey button to be bottom sticky

* Update copy
This commit is contained in:
Vim 2021-12-08 13:15:31 -05:00 committed by GitHub
commit 1f5742bc5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 240 additions and 172 deletions

View file

@ -8,7 +8,7 @@ exports[`rendering of the AreaDetail checks if various text fields are visible 1
<ul>
<li>
<span>
Census block group:
Census tract:
</span>
<span>
98729374234
@ -79,7 +79,7 @@ exports[`rendering of the AreaDetail checks if various text fields are visible 1
<p
class="secondary j40-indicator"
>
Median income of the census block group calculated as a percent of the metropolitan areas or state's median income
Median income of the census tract calculated as a percent of the metropolitan areas or state's median income
</p>
</li>
<li
@ -123,7 +123,7 @@ exports[`rendering of the AreaDetail checks if various text fields are visible 1
<p
class="secondary j40-indicator"
>
Percent of a block group's population in households where the household income is at or below 100% of the federal poverty level
Percent of a tract's population in households where the household income is at or below 100% of the federal poverty level
</p>
</li>
<li

View file

@ -7,26 +7,17 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
How you can help improve the tool
</h2>
<ul>
<li>
If you have helpful information, we would love to
<a
href="mailto:screeningtool.feedback@usds.gov"
>
receive an email from you
</a>
.
</li>
<li>
View our
<a
href="/en/methodology"
>
Data & methodology
Methodology and data
</a>
page and send us feedback.
</li>
<li>
Find your community of interest and
Find communities of interest and
<a
href="mailto:screeningtool.feedback@usds.gov"
>
@ -34,6 +25,15 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl
</a>
.
</li>
<li>
Respond to our request for information on
<a
href="https://www.federalregister.gov/"
>
federalregister.gov
</a>
.
</li>
</ul>
</div>
</DocumentFragment>

View file

@ -261,7 +261,7 @@ exports[`rendering of the J40Header checks if component renders 1`] = `
data-cy="nav-link-methodology"
href="/en/methodology"
>
Data & methodology
Methodology & data
</a>
</li>
<li

View file

@ -8,12 +8,17 @@ exports[`rendering of the MapLegend checks if snapshots have changed 1`] = `
<div
class="j40-h4"
>
Draft community of focus
Disadvantaged community
</div>
<p
class="secondary"
>
A community identified as experiencing disadvantages that merits the focus of certain Federal investments, including through the Justice40 Initiative
Communities identified for the purposes of Justice40 as disadvantaged have been
historically marginalized, underserved, and overburdened by pollution. These communities
meet or exceed the criteria in one or more areas of focus.
</p>
</div>
</div>

View file

@ -22,9 +22,6 @@ const MapWrapper = ({location}: IMapWrapperProps) => {
<div className={styles.mapCaptionTextLink}>
{EXPLORE_COPY.DOWNLOAD_DRAFT.PARAGRAPH_1}
</div>
<div>
{EXPLORE_COPY.DOWNLOAD_DRAFT.PARAGRAPH_2}
</div>
</Grid>
</Grid>
</>

View file

@ -4,7 +4,7 @@
position: relative;
.surveyButton {
position: absolute;
position: fixed;
bottom: 0;
right: 2.2rem;

View file

@ -9,7 +9,7 @@ exports[`simulate app starting up, no click on map should match the snapshot of
>
<aside>
<header>
Zoom and select a census block group to view data
Zoom and select a census tract to view data
</header>
<div>
<img
@ -21,7 +21,13 @@ exports[`simulate app starting up, no click on map should match the snapshot of
Did you know?
</div>
<cite>
A census block group is generally between 600 and 3,000 people. It is the smallest geographical unit for which the U.S. Census Bureau publishes sample data.
A census tract is generally between 1,200 and 8,000 people, with an optimum size of 4,000 people.
Census tracts are small, relatively permanent subdivisions of a county defined by the
U.S. Census Bureau and usually cover a contiguous area. The census tract level represents the
smallest geographical unity that can be presented in a statistically sound manner, given the
datasets that are being used.
</cite>
</div>
</div>

View file

@ -11,6 +11,6 @@ describe('rendering of the component', () => {
);
it('renders the title', () => {
expect(screen.getByRole('banner')).toHaveTextContent('Zoom and select a census block group to view data');
expect(screen.getByRole('banner')).toHaveTextContent('Zoom and select a census tract to view data');
});
});