-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add performance warning to Health Care Application for TERA rollout (#…
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/applications/hca/components/FormAlerts/PerformanceWarning.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import { CONTACTS } from '@department-of-veterans-affairs/component-library/contacts'; | ||
|
||
const PerformanceWarning = () => ( | ||
<va-alert status="warning" uswds> | ||
<h3 slot="headline">This application may not be working right now</h3> | ||
<div> | ||
<p className="vads-u-margin-top--0"> | ||
You may have trouble using this application at this time. We’re working | ||
to fix the problem. If you have trouble, you can try again or check back | ||
later. | ||
</p> | ||
<p> | ||
<strong> | ||
If you’re trying to apply based on our expansion of health care | ||
benefits starting on March 5, 2024 | ||
</strong> | ||
, you can also apply in other ways: | ||
</p> | ||
<ul> | ||
<li> | ||
Call us at <va-telephone contact={CONTACTS['222_VETS']} />, Monday | ||
through Friday, 8:00 a.m. to 8:00 p.m.{' '} | ||
<dfn> | ||
<abbr title="Eastern Time">ET</abbr> | ||
</dfn> | ||
</li> | ||
<li>Mail us an application.</li> | ||
<li> | ||
Or bring your application in person to your nearest VA health | ||
facility. | ||
</li> | ||
</ul> | ||
<p> | ||
<va-link | ||
href="/health-care/how-to-apply/#you-can-also-apply-in-any-of-t" | ||
text="Learn more about how to apply by phone, mail, or in person" | ||
/> | ||
</p> | ||
</div> | ||
</va-alert> | ||
); | ||
|
||
export default PerformanceWarning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/applications/hca/tests/unit/components/FormAlerts/PerformanceWarning.unit.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import { expect } from 'chai'; | ||
|
||
import PerformanceWarning from '../../../../components/FormAlerts/PerformanceWarning'; | ||
|
||
describe('hca <PerformanceWarning>', () => { | ||
context('when the component renders', () => { | ||
it('should render `va-alert` with status of `warning`', () => { | ||
const { container } = render(<PerformanceWarning />); | ||
const selector = container.querySelector('va-alert'); | ||
expect(selector).to.exist; | ||
expect(selector).to.have.attr('status', 'warning'); | ||
}); | ||
}); | ||
}); |