Skip to content

Commit 6c3b439

Browse files
committed
Extend feature specs to check vaccine details are omitted
These should not appear on the summary card for already vaccinated patients. Jira-Issue: MAV-2848 Jira-Issue: MAV-3404
1 parent 1646094 commit 6c3b439

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/features/mmr_already_had_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
and_i_see_that_the_vaccinator_is_unknown
5858
and_i_see_that_the_location_is_unknown
5959
and_i_see_that_the_reporter_is_set
60+
and_i_see_that_there_are_no_vaccine_batch_details
6061
expect(page).to have_content("LocationUnknown")
6162
and_had_been_vaccinated_with_mmr
6263
and_the_dose_number_is_first
@@ -132,6 +133,7 @@
132133
and_i_see_that_the_vaccinator_is_unknown
133134
and_i_see_that_the_location_is_unknown
134135
and_i_see_that_the_reporter_is_set
136+
and_i_see_that_there_are_no_vaccine_batch_details
135137
and_had_been_vaccinated_with_mmrv
136138
and_the_dose_number_is_second
137139
and_the_consent_requests_are_sent
@@ -317,6 +319,12 @@ def and_i_see_that_the_reporter_is_set
317319
expect(page).to have_content("Reported by#{@nurse.full_name}")
318320
end
319321

322+
def and_i_see_that_there_are_no_vaccine_batch_details
323+
expect(page).not_to have_content("Batch number")
324+
expect(page).not_to have_content("Batch expiry date")
325+
expect(page).not_to have_content("Site")
326+
end
327+
320328
def and_had_been_vaccinated_with_mmr
321329
vaccination_record = @patient.vaccination_records.last
322330
expect(vaccination_record.programme_type).to eq("mmr")

0 commit comments

Comments
 (0)