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
282 stars 203 forks source link

A timed out user is able to submit a request and receive a confirmation #90730

Closed mshatalov-va closed 1 month ago

mshatalov-va commented 2 months ago

Summary

A timed out test user is able to submit a request and receive a confirmation that the request was successful. However, a user token error is show in devtools. The "submitted" request is NOT listed on Pending Request page.

Specs

Steps to Reproduce

  1. Log into VAOS. https://staging.va.gov/my-health/appointments/?postLogin=true
  2. Select Amputation, select Cheyenne.
  3. Time out. Pause for about 15 minutes or so before submitting the request.
  4. Complete the request, validate devtool for errors
    https://staging.va.gov/my-health/appointments/pending/0950c69a382867008fbd7478ad5f2522bf0dd67743e3508337b0c99ff3b04d3a?confirmMsg=true

Actual Result

VAOS seemingly allows submission of a timed out request and shows "We received your request" confirmation screen. However, devtools shows a 403 error and no request was actually submitted.

Desired Result

VAOS should time the user out completely and not allow to submit a request and/or show a successful submission message screen.

Definition of Done


How to configure this issue

image

ldelacosta commented 2 months ago

@simiadebowale - please provide your comment here.

simiadebowale commented 2 months ago

Looks like token expired because of the long pause and a refresh token was fetched with refresh?type=idme. Once token is refreshed appointments call is made again and it's successful. This is the expected behavior so we don't consider it a bug.

ldelacosta commented 2 months ago

@mshatalov-va - this is not an issue on the FE. Let us know if you have any questions.

ldelacosta commented 1 month ago

No issues to report. Closing out the ticket.