Skip to content

Commit

Permalink
VACMS-17252 Change download links back to regular anchor tags (#28499)
Browse files Browse the repository at this point in the history
  • Loading branch information
randimays committed Mar 12, 2024
1 parent 201f00e commit 71a8b28
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
11 changes: 6 additions & 5 deletions src/applications/discharge-wizard/components/gpSteps/StepOne.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,14 @@ const StepOne = ({ formValues }) => {
<va-process-list-item header={header}>
<p>Important tips for completing Form {form.num}:</p>
{formValues['4_reason'] === '8' ? dd214Tips : nonDd2014Tips}
<va-link
class="vads-u-display--block vads-u-margin-bottom--1"
{/* Intentionally not using <va-link> per Platform Analytics team */}
<a
className="vads-u-display--block vads-u-margin-bottom--1 step-1-download"
download
filetype="PDF"
href={form.link}
text={`Download Form ${form.num}`}
/>
>
Download Form {form.num}
</a>
<AlertMessage
content={
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ const renderMedicalRecordInfo = formValues => {
You can request your <strong>VA medical records</strong> by
submitting VA Form 10-5345 to your local VA Medical Center.
<br />
<va-link
{/* Intentionally not using <va-link> per Platform Analytics team */}
<a
download
text="Download VA Form 10-5345"
href="https://www.va.gov/find-forms/about-form-10-5345/"
/>
>
Download VA Form 10-5345
</a>
</li>
<li>{requestQuestion}</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('Discharge Wizard <GuidancePage />', () => {
router={reactRouterStub}
/>,
);
expect(tree.find('va-link[text*="Download Form"]')).to.have.lengthOf(1);
expect(tree.find('.step-1-download')).to.have.lengthOf(1);
tree.unmount();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('functionality of discharge wizard', () => {
axeTestPage();

// open Form download
cy.get('.main va-link[download="true"]')
cy.get('.main .step-1-download')
.first()
.click();
});
Expand Down

0 comments on commit 71a8b28

Please sign in to comment.