We need to update the alert on the /copay-balances page to the same warning that appears on the summary page when a veteran is not enrolled in healthcare. Currently it's showing as an error message as if the endpoint failed, but it should be a warning message. Examples below.
Here's the PR where we implemented the warning the first time, looks like vets.gov.user+3@gmail.com is a good test case locally and on staging according to this test case
Given: A veteran is not enrolled in healthcare
When: That veteran navigates directly to /manage-va-debt/summary/copay-balances
Then: That veteran should see the "Not enrolled in healthcare" alert message instead of the error message
Summary page warning
Current copay error
This should be changed to warning message to match summary page
(while not effecting the renderOtherVA functionality)
Tasks
[ ] Implement warning message on copay balances page to indicate when a veteran is not enrolled in healthcare
[ ] Double check with BE that any 403 we get means the veteran is not enrolled in healthcare
[ ] Run and update e2e tests (that may be temporarily skipped, so you'll need to unskip to run)
Acceptance criteria
[ ] Messaging is consistent for copay balances page and summary page
[ ] 403 is the correct condition for showing veteran is not enrolled in healthcare
Testing
[ ] Warning message appears if copay response is 403
[ ] Testing passed and documented in this ticket based off the "Then" statement in the description
Ticket creation
Ticket requirements
### Required to be "Ready"
- [x] Description written
- [x] Tasks defined
- [x] Acceptance criteria written
- [x] Testing defined
- [x] Add Labels
- [ ] Attach to an Epic
- [x] Estimate Points
Description
We need to update the alert on the
/copay-balances
page to the same warning that appears on the summary page when a veteran is not enrolled in healthcare. Currently it's showing as an error message as if the endpoint failed, but it should be a warning message. Examples below.On the summary page we check for a 403 response and surface the warning message, so we should probably do the same on the copay specific page.
Here's the PR where we implemented the warning the first time, looks like
vets.gov.user+3@gmail.com
is a good test case locally and on staging according to this test caseGiven: A veteran is not enrolled in healthcare When: That veteran navigates directly to
/manage-va-debt/summary/copay-balances
Then: That veteran should see the "Not enrolled in healthcare" alert message instead of the error messageSummary page warning
Current copay error
This should be changed to warning message to match summary page (while not effecting the
renderOtherVA
functionality)Tasks
Acceptance criteria
Testing
Ticket creation
Ticket requirements
### Required to be "Ready" - [x] Description written - [x] Tasks defined - [x] Acceptance criteria written - [x] Testing defined - [x] Add Labels - [ ] Attach to an Epic - [x] Estimate Points