mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Remove source links
This commit is contained in:
parent
40973b9393
commit
f47b949c98
12 changed files with 9 additions and 381 deletions
|
@ -30,11 +30,14 @@ When(`I click on the {string} button in the navigation`, (page) => {
|
||||||
|
|
||||||
When(`I look for the {string} CTA`, (ctaString) => {
|
When(`I look for the {string} CTA`, (ctaString) => {
|
||||||
cy.get(`[data-cy="${hyphenizeString(ctaString)}-block"]`).as('CTA_block');
|
cy.get(`[data-cy="${hyphenizeString(ctaString)}-block"]`).as('CTA_block');
|
||||||
cy.get('@CTA_block').scrollIntoView().should('be.visible');
|
cy.get('@CTA_block').scrollIntoView();
|
||||||
|
cy.get('@CTA_block').should('be.visible');
|
||||||
});
|
});
|
||||||
|
|
||||||
When(`I look for the {string}`, (footer) => {
|
When(`I look for the {string}`, (footer) => {
|
||||||
cy.get(`[data-cy="${hyphenizeString(footer)}-primary-block"]`).scrollIntoView().should('be.visible');
|
cy.get(`[data-cy="${hyphenizeString(footer)}-primary-block"]`).as('string_block');
|
||||||
|
cy.get('@string_block').scrollIntoView();
|
||||||
|
cy.get('@string_block').should('be.visible');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Common Thens:
|
// Common Thens:
|
||||||
|
|
5
client/package-lock.json
generated
5
client/package-lock.json
generated
|
@ -4,11 +4,6 @@
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"-": {
|
|
||||||
"version": "0.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/-/-/--0.0.1.tgz",
|
|
||||||
"integrity": "sha512-3HfneK3DGAm05fpyj20sT3apkNcvPpCuccOThOPdzz8sY7GgQGe0l93XH9bt+YzibcTIgUAIMoyVJI740RtgyQ=="
|
|
||||||
},
|
|
||||||
"@adobe/css-tools": {
|
"@adobe/css-tools": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz",
|
||||||
|
|
|
@ -12,9 +12,7 @@ import LinkTypeWrapper from '../LinkTypeWrapper';
|
||||||
import SurveyButton from '../SurveyButton';
|
import SurveyButton from '../SurveyButton';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {GITHUB_LINK, GITHUB_LINK_ES} from '../../constants';
|
|
||||||
import {PAGES_ENDPOINTS} from '../../data/constants';
|
import {PAGES_ENDPOINTS} from '../../data/constants';
|
||||||
import * as ABOUT_COPY from '../../data/copy/about';
|
|
||||||
import * as COMMON_COPY from '../../data/copy/common';
|
import * as COMMON_COPY from '../../data/copy/common';
|
||||||
import whitehouseIcon from '../../images/eop-seal.svg';
|
import whitehouseIcon from '../../images/eop-seal.svg';
|
||||||
|
|
||||||
|
@ -64,19 +62,6 @@ const J40Footer = () => {
|
||||||
dataCy={hyphenizeString(COMMON_COPY.FOOTER.FIND_CONTACT.defaultMessage)}
|
dataCy={hyphenizeString(COMMON_COPY.FOOTER.FIND_CONTACT.defaultMessage)}
|
||||||
/>,
|
/>,
|
||||||
],
|
],
|
||||||
[
|
|
||||||
intl.formatMessage(COMMON_COPY.FOOTER.CONTRIBUTE),
|
|
||||||
<LinkTypeWrapper
|
|
||||||
linkText={intl.formatMessage(COMMON_COPY.FOOTER.GITHUB_LINK_TEXT)}
|
|
||||||
internal={false}
|
|
||||||
url={intl.locale === 'es' ? GITHUB_LINK_ES : GITHUB_LINK}
|
|
||||||
openUrlNewTab={true}
|
|
||||||
className={'footer-link-first-child'}
|
|
||||||
key={'contactlink'}
|
|
||||||
dataCy={hyphenizeString(COMMON_COPY.FOOTER.GITHUB_LINK_TEXT.defaultMessage)}
|
|
||||||
tag={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_LINK_TAG)}
|
|
||||||
/>,
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// see https://designsystem.digital.gov/components/footer/
|
// see https://designsystem.digital.gov/components/footer/
|
||||||
|
|
|
@ -114,41 +114,6 @@ exports[`J40Footer renders correctly 1`] = `
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,6 @@ import J40MainGridContainer from '../components/J40MainGridContainer';
|
||||||
import Layout from '../components/layout';
|
import Layout from '../components/layout';
|
||||||
import SubPageNav from '../components/SubPageNav';
|
import SubPageNav from '../components/SubPageNav';
|
||||||
|
|
||||||
import {GITHUB_LINK, GITHUB_LINK_ES} from '../constants';
|
|
||||||
import {DATA_SURVEY_LINKS, PAGES_ENDPOINTS, USWDS_BREAKPOINTS} from '../data/constants';
|
import {DATA_SURVEY_LINKS, PAGES_ENDPOINTS, USWDS_BREAKPOINTS} from '../data/constants';
|
||||||
import * as ABOUT_COPY from '../data/copy/about';
|
import * as ABOUT_COPY from '../data/copy/about';
|
||||||
import {FEEDBACK_EMAIL} from '../data/copy/common';
|
import {FEEDBACK_EMAIL} from '../data/copy/common';
|
||||||
|
@ -20,8 +19,6 @@ import {FEEDBACK_EMAIL} from '../data/copy/common';
|
||||||
import commentIcon from // @ts-ignore
|
import commentIcon from // @ts-ignore
|
||||||
'/node_modules/uswds/dist/img/usa-icons/comment.svg';
|
'/node_modules/uswds/dist/img/usa-icons/comment.svg';
|
||||||
|
|
||||||
import githubIcon from // @ts-ignore
|
|
||||||
'/node_modules/uswds/dist/img/usa-icons/github.svg';
|
|
||||||
|
|
||||||
interface IAboutPageProps {
|
interface IAboutPageProps {
|
||||||
location: Location;
|
location: Location;
|
||||||
|
@ -113,19 +110,9 @@ const AboutPage = ({location}: IAboutPageProps) => {
|
||||||
</p>
|
</p>
|
||||||
</AboutCard>
|
</AboutCard>
|
||||||
|
|
||||||
<AboutCard
|
<div className='grid-gap-lg tablet:grid-col'>
|
||||||
size={'small'}
|
{/* spacer */}
|
||||||
imgSrc={githubIcon}
|
</div>
|
||||||
header={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_HEADING)}
|
|
||||||
linkText={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_LINK_TEXT)}
|
|
||||||
linkTag={intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_LINK_TAG)}
|
|
||||||
url={intl.locale === 'es' ? GITHUB_LINK_ES : GITHUB_LINK}
|
|
||||||
openUrlNewTab={true}
|
|
||||||
internal={false}>
|
|
||||||
<p>
|
|
||||||
{intl.formatMessage(ABOUT_COPY.GET_INVOLVED.JOIN_OSC_INFO)}
|
|
||||||
</p>
|
|
||||||
</AboutCard>
|
|
||||||
</AboutCardsContainer>
|
</AboutCardsContainer>
|
||||||
|
|
||||||
<Grid col={12} tablet={{col: 8}}>
|
<Grid col={12} tablet={{col: 8}}>
|
||||||
|
|
|
@ -558,70 +558,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="grid-gap-lg tablet:grid-col"
|
class="grid-gap-lg tablet:grid-col"
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="grid-row j40-aboutcard-sm-card"
|
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="tablet:grid-col-2 j40-aboutpage-image-container"
|
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
alt="Join the open source community"
|
|
||||||
class="j40-aboutcard-image"
|
|
||||||
src="test-file-stub"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="tablet:grid-col-9"
|
|
||||||
data-cy="join-the-open-source-community-block"
|
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="grid-row"
|
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
<h3>
|
|
||||||
Join the open source community
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
|
|
||||||
The tool’s code is open source, which means it is available for the public to view and contribute to it.
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div
|
|
||||||
class="j40-aboutcard-sm-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external"
|
|
||||||
data-cy=""
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check it out on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="grid-col-1"
|
|
||||||
data-testid="grid"
|
|
||||||
>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
class="grid-col-12 tablet:grid-col-8"
|
class="grid-col-12 tablet:grid-col-8"
|
||||||
data-testid="grid"
|
data-testid="grid"
|
||||||
|
@ -784,41 +722,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -569,41 +569,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -701,41 +701,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1231,41 +1231,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3258,41 +3258,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -693,41 +693,6 @@ exports[`rendering of the Privacy Policy page matches Privacy Policy page snapsh
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -509,41 +509,6 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mobile-lg:grid-col-12 desktop:grid-col-4"
|
|
||||||
>
|
|
||||||
<section>
|
|
||||||
<div
|
|
||||||
class="j40-h4"
|
|
||||||
>
|
|
||||||
Want to contribute?
|
|
||||||
</div>
|
|
||||||
<ul
|
|
||||||
class="usa-list usa-list--unstyled"
|
|
||||||
>
|
|
||||||
<li
|
|
||||||
class="usa-footer__secondary-link"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
class="usa-link usa-link--external footer-link-first-child"
|
|
||||||
data-cy="check-out-the-code-on-github"
|
|
||||||
href="https://github.com/DOI-DO/ceq-j40-cejst-2"
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Check out the code on GitHub
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="usa-tag "
|
|
||||||
data-testid="tag"
|
|
||||||
>
|
|
||||||
New Location
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue