Skip to content

Commit

Permalink
VACMS-16964 VAMC Locations web components (#29634)
Browse files Browse the repository at this point in the history
  • Loading branch information
randimays authored and agravell047 committed May 9, 2024
1 parent 2a52c5c commit 07ce313
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const FacilityApiAlert = () => (
<p>
Our location finder isn’t working right now. We’re sorry about that.
Please check back a bit later. Or, if you need location details right
away, you can try searching for
away, you can try searching for&nbsp;&nbsp;
<a
href="https://www.google.com/maps/search/?api=1&query=VA+locations+near+me"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ export default class OtherFacilityListWidget extends React.Component {
>
<section key={facility.id} className="usa-width-one-half">
<h3 className="vads-u-margin-bottom--1 vads-u-font-size--md medium-screen:vads-u-font-size--lg">
<a href={`/find-locations/facility/${facility.id}`}>
{facility.attributes.name}
</a>
<va-link
href={`/find-locations/facility/${facility.id}`}
text={facility.attributes.name}
/>
</h3>
<FacilityAddress facility={facility} />
<div className="vads-u-margin-bottom--0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ describe('facilities <OtherFacilityListWidget>', () => {
tree.update();
expect(tree.find('va-loading-indicator').exists()).to.be.false;

const facilityName = tree.find('h3');
expect(facilityName.text()).to.contain(
'Pittsburgh VA Medical Center-University Drive',
);

const facilityAddressComponent = tree.find('FacilityAddress').dive();
const address = facilityAddressComponent.find('address');
expect(address.text()).to.contain(
Expand Down

0 comments on commit 07ce313

Please sign in to comment.