|
57 | 57 | and_i_see_that_the_vaccinator_is_unknown |
58 | 58 | and_i_see_that_the_location_is_unknown |
59 | 59 | and_i_see_that_the_reporter_is_set |
| 60 | + and_i_see_that_there_are_no_vaccine_batch_details |
60 | 61 | expect(page).to have_content("LocationUnknown") |
61 | 62 | and_had_been_vaccinated_with_mmr |
62 | 63 | and_the_dose_number_is_first |
63 | 64 | and_the_consent_requests_are_sent |
64 | 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 |
65 | 70 | end |
66 | 71 |
|
67 | 72 | scenario "record a patient as already had their 1st MMR dose and then edit dates" do |
|
132 | 137 | and_i_see_that_the_vaccinator_is_unknown |
133 | 138 | and_i_see_that_the_location_is_unknown |
134 | 139 | and_i_see_that_the_reporter_is_set |
| 140 | + and_i_see_that_there_are_no_vaccine_batch_details |
135 | 141 | and_had_been_vaccinated_with_mmrv |
136 | 142 | and_the_dose_number_is_second |
137 | 143 | and_the_consent_requests_are_sent |
138 | 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 |
139 | 149 | end |
140 | 150 | end |
141 | 151 |
|
@@ -317,6 +327,12 @@ def and_i_see_that_the_reporter_is_set |
317 | 327 | expect(page).to have_content("Reported by#{@nurse.full_name}") |
318 | 328 | end |
319 | 329 |
|
| 330 | + def and_i_see_that_there_are_no_vaccine_batch_details |
| 331 | + expect(page).not_to have_content("Batch number") |
| 332 | + expect(page).not_to have_content("Batch expiry date") |
| 333 | + expect(page).not_to have_content("Site") |
| 334 | + end |
| 335 | + |
320 | 336 | def and_had_been_vaccinated_with_mmr |
321 | 337 | vaccination_record = @patient.vaccination_records.last |
322 | 338 | expect(vaccination_record.programme_type).to eq("mmr") |
@@ -390,4 +406,20 @@ def and_i_see_the_updated_date_in_the_summary |
390 | 406 | "Date#{@vaccination_date.strftime("%-d %B %Y")}" |
391 | 407 | ) |
392 | 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 |
393 | 425 | end |
0 commit comments