Fix all failing cypress tests (#774)

* Fix all failing cypress tests

- update test name to be more appropriate
- update download packet tests to CDN
- update data-cy tag on About heading

* Update snapshot
This commit is contained in:
Vim 2021-10-05 15:52:03 -04:00 committed by GitHub
commit 819113ceb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 41 deletions

View file

@ -284,7 +284,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
class="grid-container-desktop-lg"
data-testid="gridContainer"
>
<h1>
<h1
data-cy="about-page-heading"
>
About us
</h1>
<div
@ -317,9 +319,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
class="grid-row"
data-testid="grid"
>
<h2
data-cy="about-screen-tool-heading"
>
<h2>
The screening tool
</h2>
<p>
@ -363,9 +363,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
class="grid-row"
data-testid="grid"
>
<h2
data-cy="about-screen-tool-heading"
>
<h2>
The Justice40 Initiative
</h2>
<p>

View file

@ -41,7 +41,7 @@ const IndexPage = ({location}: IndexPageProps) => {
</J40MainGridContainer>
<J40MainGridContainer>
<h1>{intl.formatMessage(ABOUT_COPY.PAGE.HEADING)}</h1>
<h1 data-cy={'about-page-heading'}>{intl.formatMessage(ABOUT_COPY.PAGE.HEADING)}</h1>
<AboutCardsContainer>
<AboutCard
size={'large'}