bcgov / MOH-PPPP-Enrolment

Apache License 2.0
1 stars 0 forks source link

Bug: redirect to correct submission message when PRN is present in API response #122

Closed stephanieharrison-maximus closed 3 years ago

stephanieharrison-maximus commented 3 years ago

Please check if the PR fulfills these requirements:

Please specify the type of change this PR introduces (Bug fix, feature addition, content update, chore, etc.):

--Introduces logic gate to the ReviewPage.vue for both Pay Patient and Pay Practitioner. If the API response contains a plan reference number in it (eg. if the database is down but the response is still processed by MAXImage), the page redirects to SubmissionPage instead of SubmissionErrorPage. --Updates tests accordingly and makes a few minor fixes to test names as well.

Additional Notes:

--This approach was tested with Denis Brake, who manually turned off the database for me so I could evaluate the redirection code. I did this for both Pay Patient and Pay Practitioner successfully. Unit and E2E tests all pass. --Completes the work required by ticket CLMWEBDE-94