department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
278 stars 195 forks source link

[CDP] Bug - Veteran not enrolled in healthcare alert on copay balances #85064

Open Dr-Pongo opened 1 month ago

Dr-Pongo commented 1 month ago

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 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

image.png

Current copay error

This should be changed to warning message to match summary page (while not effecting the renderOtherVA functionality)

image.png

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
Dr-Pongo commented 1 month ago

Bumping to a 5 as we may need to update some tests and may have some cross training involved!