|
63 | 63 | and_the_dose_number_is_first |
64 | 64 | and_the_consent_requests_are_sent |
65 | 65 | then_the_parent_doesnt_receive_a_consent_request |
| 66 | + |
| 67 | + when_the_status_updater_runs |
| 68 | + and_i_navigate_to_the_patient_record |
| 69 | + then_i_see_that_the_vaccination_record_has_outcome_vaccinated |
66 | 70 | end |
67 | 71 |
|
68 | 72 | scenario "record a patient as already had their 1st MMR dose and then edit dates" do |
|
138 | 142 | and_the_dose_number_is_second |
139 | 143 | and_the_consent_requests_are_sent |
140 | 144 | then_the_parent_doesnt_receive_a_consent_request |
| 145 | + |
| 146 | + when_the_status_updater_runs |
| 147 | + and_i_navigate_to_the_patient_record |
| 148 | + then_i_see_that_the_vaccination_record_has_outcome_vaccinated |
141 | 149 | end |
142 | 150 | end |
143 | 151 |
|
@@ -398,4 +406,20 @@ def and_i_see_the_updated_date_in_the_summary |
398 | 406 | "Date#{@vaccination_date.strftime("%-d %B %Y")}" |
399 | 407 | ) |
400 | 408 | end |
| 409 | + |
| 410 | + def when_the_status_updater_runs |
| 411 | + PatientStatusUpdaterJob.perform_inline(@patient.id) |
| 412 | + end |
| 413 | + |
| 414 | + def and_i_navigate_to_the_patient_record |
| 415 | + visit patient_path(@patient) |
| 416 | + end |
| 417 | + |
| 418 | + def then_i_see_that_the_vaccination_record_has_outcome_vaccinated |
| 419 | + expect(page).to have_content("Vaccination date #{@vaccination_date.strftime("%-d %B %Y")}") |
| 420 | + expect(page).to have_content("Location Unknown") |
| 421 | + expect(page).to have_content("Programme MMR") |
| 422 | + expect(page).to have_content("Source Manual report") |
| 423 | + expect(page).to have_content("Outcome Vaccinated") |
| 424 | + end |
401 | 425 | end |
0 commit comments