diff --git a/src/applications/vaos/components/layout/ClaimExamLayout.jsx b/src/applications/vaos/components/layout/ClaimExamLayout.jsx index 1cc968c06f33..a2c579cd9f81 100644 --- a/src/applications/vaos/components/layout/ClaimExamLayout.jsx +++ b/src/applications/vaos/components/layout/ClaimExamLayout.jsx @@ -109,7 +109,7 @@ export default function ClaimExamLayout({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
@@ -143,7 +143,7 @@ export default function ClaimExamLayout({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
{facilityPhone && ( diff --git a/src/applications/vaos/components/layout/ClaimExamLayout.unit.spec.js b/src/applications/vaos/components/layout/ClaimExamLayout.unit.spec.js index 77abca6b97ab..b8c679f83ac0 100644 --- a/src/applications/vaos/components/layout/ClaimExamLayout.unit.spec.js +++ b/src/applications/vaos/components/layout/ClaimExamLayout.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: ClaimExamLayout', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -318,6 +320,11 @@ describe('VAOS Component: ClaimExamLayout', () => { screen.getByRole('heading', { level: 2, name: /Where to attend/i }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.getByText(/2360 East Pershing Boulevard/i)); expect(screen.container.querySelector('va-icon[icon="directions"]')).to.be diff --git a/src/applications/vaos/components/layout/InPersonLayout.jsx b/src/applications/vaos/components/layout/InPersonLayout.jsx index 96d95a575d55..fff4921d4fc1 100644 --- a/src/applications/vaos/components/layout/InPersonLayout.jsx +++ b/src/applications/vaos/components/layout/InPersonLayout.jsx @@ -108,7 +108,7 @@ export default function InPersonLayout({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
diff --git a/src/applications/vaos/components/layout/InPersonLayout.unit.spec.js b/src/applications/vaos/components/layout/InPersonLayout.unit.spec.js index 5e92ef024381..81567152008c 100644 --- a/src/applications/vaos/components/layout/InPersonLayout.unit.spec.js +++ b/src/applications/vaos/components/layout/InPersonLayout.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: InPersonLayout', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -320,6 +322,11 @@ describe('VAOS Component: InPersonLayout', () => { screen.getByRole('heading', { level: 2, name: /Where to attend/i }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.getByText(/2360 East Pershing Boulevard/i)); expect(screen.container.querySelector('va-icon[icon="directions"]')).to.be diff --git a/src/applications/vaos/components/layout/PhoneLayout.jsx b/src/applications/vaos/components/layout/PhoneLayout.jsx index 8666d20c0b98..d4bc20cd2b0c 100644 --- a/src/applications/vaos/components/layout/PhoneLayout.jsx +++ b/src/applications/vaos/components/layout/PhoneLayout.jsx @@ -86,7 +86,7 @@ export default function PhoneLayout({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
diff --git a/src/applications/vaos/components/layout/PhoneLayout.unit.spec.js b/src/applications/vaos/components/layout/PhoneLayout.unit.spec.js index ddb6002a9efe..ff1a42bec2fd 100644 --- a/src/applications/vaos/components/layout/PhoneLayout.unit.spec.js +++ b/src/applications/vaos/components/layout/PhoneLayout.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: PhoneLayout', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -243,6 +245,11 @@ describe('VAOS Component: PhoneLayout', () => { }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.getByText(/2360 East Pershing Boulevard/i)); expect(screen.container.querySelector('va-icon[icon="directions"]')).not .to.exist; diff --git a/src/applications/vaos/components/layout/VARequestLayout.jsx b/src/applications/vaos/components/layout/VARequestLayout.jsx index ade88d77d815..22db90008698 100644 --- a/src/applications/vaos/components/layout/VARequestLayout.jsx +++ b/src/applications/vaos/components/layout/VARequestLayout.jsx @@ -89,7 +89,7 @@ export default function VARequestLayout({ data: appointment }) { )} {!!facility?.name && ( <> - {facility.name} + {facility.name}
)} diff --git a/src/applications/vaos/components/layout/VARequestLayout.unit.spec.js b/src/applications/vaos/components/layout/VARequestLayout.unit.spec.js index 37328c3f5c05..1ebe60c7a0cb 100644 --- a/src/applications/vaos/components/layout/VARequestLayout.unit.spec.js +++ b/src/applications/vaos/components/layout/VARequestLayout.unit.spec.js @@ -24,6 +24,8 @@ describe('VAOS Component: VARequestLayout', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -112,6 +114,11 @@ describe('VAOS Component: VARequestLayout', () => { expect(screen.getByRole('heading', { level: 2, name: /Facility/i })); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.getByText(/2360 East Pershing Boulevard/i)); expect(screen.container.querySelector('va-icon[icon="directions"]')).to.be diff --git a/src/applications/vaos/components/layout/VideoLayout.jsx b/src/applications/vaos/components/layout/VideoLayout.jsx index f51aa8a04396..ea89e748a21f 100644 --- a/src/applications/vaos/components/layout/VideoLayout.jsx +++ b/src/applications/vaos/components/layout/VideoLayout.jsx @@ -91,7 +91,7 @@ export default function VideoLayout({ data: appointment }) {
{!!facility && ( <> - {facility.name} + {facility.name}
{address.city}, @@ -140,7 +140,7 @@ export default function VideoLayout({ data: appointment }) {
{facility ? ( <> - {facility.name} + {facility.name}
{address.city}, diff --git a/src/applications/vaos/components/layout/VideoLayout.unit.spec.js b/src/applications/vaos/components/layout/VideoLayout.unit.spec.js index 441b52bfb32e..0be0fab6edc3 100644 --- a/src/applications/vaos/components/layout/VideoLayout.unit.spec.js +++ b/src/applications/vaos/components/layout/VideoLayout.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: VideoLayout', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -276,6 +278,11 @@ describe('VAOS Component: VideoLayout', () => { }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.queryByText(/2360 East Pershing Boulevard/i)).not.to.exist; expect(screen.getByText(/Clinic: Clinic 1/i)); diff --git a/src/applications/vaos/components/layout/VideoLayoutAtlas.jsx b/src/applications/vaos/components/layout/VideoLayoutAtlas.jsx index d9ae3f0dff89..41a49094ca8f 100644 --- a/src/applications/vaos/components/layout/VideoLayoutAtlas.jsx +++ b/src/applications/vaos/components/layout/VideoLayoutAtlas.jsx @@ -113,7 +113,7 @@ export default function VideoLayoutAtlas({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
{facility ? ( <> - {facility.name} + {facility.name}
{address.city}, diff --git a/src/applications/vaos/components/layout/VideoLayoutAtlas.unit.spec.js b/src/applications/vaos/components/layout/VideoLayoutAtlas.unit.spec.js index 77afa9dcd8da..78e8a459c951 100644 --- a/src/applications/vaos/components/layout/VideoLayoutAtlas.unit.spec.js +++ b/src/applications/vaos/components/layout/VideoLayoutAtlas.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: VideoLayoutAtlas', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -354,6 +356,11 @@ describe('VAOS Component: VideoLayoutAtlas', () => { }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.queryByText(/2360 East Pershing Boulevard/i)).not.to.exist; expect(screen.container.querySelector('va-icon[icon="directions"]')).to.be .ok; diff --git a/src/applications/vaos/components/layout/VideoLayoutVA.jsx b/src/applications/vaos/components/layout/VideoLayoutVA.jsx index 5db538ac9775..c4739672a93e 100644 --- a/src/applications/vaos/components/layout/VideoLayoutVA.jsx +++ b/src/applications/vaos/components/layout/VideoLayoutVA.jsx @@ -106,7 +106,7 @@ export default function VideoLayoutVA({ data: appointment }) { )} {!!facility && ( <> - {facility.name} + {facility.name}
diff --git a/src/applications/vaos/components/layout/VideoLayoutVA.unit.spec.js b/src/applications/vaos/components/layout/VideoLayoutVA.unit.spec.js index 00c9afc6e79d..f18a68a2f963 100644 --- a/src/applications/vaos/components/layout/VideoLayoutVA.unit.spec.js +++ b/src/applications/vaos/components/layout/VideoLayoutVA.unit.spec.js @@ -25,6 +25,8 @@ describe('VAOS Component: VideoLayoutVA', () => { value: '307-778-7550', }, ], + website: + 'https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/', }, }, }, @@ -379,6 +381,11 @@ describe('VAOS Component: VideoLayoutVA', () => { }), ); expect(screen.getByText(/Cheyenne VA Medical Center/i)); + expect( + screen.container.querySelector( + 'a[href="https://www.va.gov/cheyenne-health-care/locations/cheyenne-va-medical-center/"]', + ), + ).to.be.ok; expect(screen.getByText(/2360 East Pershing Boulevard/i)); expect(screen.container.querySelector('va-icon[icon="directions"]')).to .be.ok; diff --git a/src/applications/vaos/services/location/transformers.js b/src/applications/vaos/services/location/transformers.js index ab230326f403..bf8aeaf9fb64 100644 --- a/src/applications/vaos/services/location/transformers.js +++ b/src/applications/vaos/services/location/transformers.js @@ -48,6 +48,7 @@ export function transformFacilityV2(facility) { state: facility.physicalAddress.state, postalCode: facility.physicalAddress.postalCode, }, + website: facility.website, }; }