Skip to content

Commit 55149fc

Browse files
committed
Make spec more robust against ambiguity between test users
1 parent 5373964 commit 55149fc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

spec/features/flu_vaccination_hca_pgd_supply_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def given_a_session_exists
5555
vaccine: @programme.vaccines.nasal.first
5656
)
5757

58-
@nurse = create(:nurse, team: @team)
58+
@nurse =
59+
create(:nurse, team: @team, given_name: "Supplying", family_name: "Nurse")
5960
@user = create(:healthcare_assistant, team: @team)
6061

6162
@session =
@@ -140,7 +141,7 @@ def then_i_am_able_to_vaccinate_them_nasal_only
140141
expect(page).not_to have_content("injected flu instead")
141142

142143
check "I have checked that the above statements are true"
143-
select @nurse.full_name
144+
select "NURSE, Supplying"
144145
within all("section")[1] do
145146
choose "Yes"
146147
end

0 commit comments

Comments
 (0)