Skip to content

Commit 4f62f6e

Browse files
Update already_had_spec
This test started failing due to the changed functionality; it depended on a vaccinated patient having a triage status of "Do not vaccinate". Under the new logic, the triage status should be "Not required", meaning that it doesn't show up on the Triage tab at all
1 parent 6e37651 commit 4f62f6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/features/td_ipv_already_had_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
when_i_record_the_patient_as_already_vaccinated
4747
then_i_see_the_patient_is_already_vaccinated
4848
and_i_click_on_triage
49-
then_i_see_the_patient_should_not_be_vaccinated
49+
then_i_see_the_patient_doesnt_need_triage
5050
end
5151

5252
scenario "can't record as already vaccinated as an admin" do
@@ -201,10 +201,10 @@ def and_i_click_on_triage
201201
click_on "Triage"
202202
end
203203

204-
def then_i_see_the_patient_should_not_be_vaccinated
205-
choose "Do not vaccinate"
204+
def then_i_see_the_patient_doesnt_need_triage
205+
choose "Any"
206206
click_on "Update results"
207207

208-
expect(page).to have_content(@patient.full_name)
208+
expect(page).not_to have_content(@patient.full_name)
209209
end
210210
end

0 commit comments

Comments
 (0)