|
15 | 15 | and_i_can_see_the_consent_response_details |
16 | 16 | end |
17 | 17 |
|
| 18 | + scenario "Given flu injection" do |
| 19 | + given_an_flu_programme_is_underway |
| 20 | + and_i_am_signed_in |
| 21 | + |
| 22 | + when_i_record_that_verbal_injection_consent_was_given |
| 23 | + then_i_see_the_check_and_confirm_page |
| 24 | + and_i_see_the_flu_injection_consent_given |
| 25 | + |
| 26 | + when_i_confirm_the_consent_response |
| 27 | + then_an_email_is_sent_to_the_parent_confirming_their_consent |
| 28 | + and_a_text_is_sent_to_the_parent_confirming_their_consent |
| 29 | + end |
| 30 | + |
18 | 31 | scenario "Given flu nasal spray" do |
19 | 32 | given_an_flu_programme_is_underway |
20 | 33 | and_i_am_signed_in |
@@ -71,6 +84,14 @@ def when_i_record_that_verbal_consent_was_given |
71 | 84 | ) |
72 | 85 | end |
73 | 86 |
|
| 87 | + def when_i_record_that_verbal_injection_consent_was_given |
| 88 | + record_that_verbal_consent_was_given( |
| 89 | + consent_option: "Yes, for the injected vaccine only", |
| 90 | + number_of_health_questions: 4, |
| 91 | + triage_option: "Yes, it’s safe to vaccinate with injected vaccine" |
| 92 | + ) |
| 93 | + end |
| 94 | + |
74 | 95 | def when_i_record_that_verbal_nasal_consent_was_given |
75 | 96 | record_that_verbal_consent_was_given( |
76 | 97 | consent_option: "Yes, for the nasal spray", |
@@ -140,13 +161,17 @@ def then_i_see_the_check_and_confirm_page |
140 | 161 | expect(page).to have_content(["Method", "By phone"].join) |
141 | 162 | end |
142 | 163 |
|
| 164 | + def and_i_see_the_flu_injection_consent_given |
| 165 | + expect(page).to have_content("Consent givenInjection") |
| 166 | + end |
| 167 | + |
143 | 168 | def and_i_see_the_flu_nasal_consent_given |
144 | | - expect(page).to have_content("Given nasalNasal spray") |
| 169 | + expect(page).to have_content("Consent givenNasal spray") |
145 | 170 | expect(page).to have_content("Consent also given for injected vaccine?No") |
146 | 171 | end |
147 | 172 |
|
148 | 173 | def and_i_see_the_flu_nasal_and_injection_consent_given |
149 | | - expect(page).to have_content("Given nasalNasal spray") |
| 174 | + expect(page).to have_content("Consent givenNasal spray") |
150 | 175 | expect(page).to have_content("Consent also given for injected vaccine?Yes") |
151 | 176 | end |
152 | 177 |
|
|
0 commit comments