cds-snc / c19-benefits-node

Answer some questions to find which federal programs can help you https://covid-benefits.alpha.canada.ca/. - Répondez à quelques questions pour trouver quels programmes d’aide financière fédéraux s’offrent à vous https://covid-prestations.alpha.canada.ca/.
MIT License
2 stars 4 forks source link

Bug showing CERB twice when going back and forth #378

Closed michellengaiCDS closed 4 years ago

michellengaiCDS commented 4 years ago

Repro steps:

  1. Started answering questions as follows: Lost some income, lost one or two part time jobs and still have some income, etc. Answered until I got to the Results.
  2. Clicked Back all the way back to the first question.
  3. Changed answer to All income, employed lost a job and reduced income, 1000 or less, etc.
  4. Results page showed 2 CERBs. https://cv19benefits-appservice-dev.azurewebsites.net/en/results?lost_job=lost-all-income&some_income=employed-lost-a-job&reduced_income=1000_or_less&mortgage_payments=yes-mortgage&ccb=yes&student_debt=no&no_income=lost-job-employer-closed
  5. Clicked Back all the way back to the first question again.
  6. Changed selection back to Lost some income, and discovered You’ve lost one or two part time jobs is still already selected.
  7. Went to Results page and this time only 1 CERB was showing.