@@ -112,8 +112,36 @@ def and_pds_lookup_during_import_is_enabled
112
112
113
113
Flipper . enable ( :pds_lookup_during_import )
114
114
115
- stub_pds_search_to_return_a_patient
116
- stub_pds_get_nhs_number_to_return_a_patient
115
+ stub_pds_search_to_return_no_patients (
116
+ "family" => "Smith" ,
117
+ "given" => "Jimmy" ,
118
+ "birthdate" => "eq2010-01-02" ,
119
+ "address-postalcode" => "SW1A 1AA"
120
+ )
121
+
122
+ stub_pds_search_to_return_a_patient (
123
+ "9999075320" ,
124
+ "family" => "Clarke" ,
125
+ "given" => "Jennifer" ,
126
+ "birthdate" => "eq2010-01-01" ,
127
+ "address-postalcode" => "SW1A 1AA"
128
+ )
129
+
130
+ stub_pds_search_to_return_a_patient (
131
+ "9999075320" ,
132
+ "family" => "Clarke" ,
133
+ "given" => "Jennifer" ,
134
+ "birthdate" => "eq2010-01-01" ,
135
+ "address-postalcode" => "SW1A 1AB"
136
+ )
137
+
138
+ stub_pds_search_to_return_a_patient (
139
+ "9435764479" ,
140
+ "family" => "Doe" ,
141
+ "given" => "Mark" ,
142
+ "birthdate" => "eq2010-01-03" ,
143
+ "address-postalcode" => "SW1A 1AA"
144
+ )
117
145
end
118
146
119
147
def and_an_hpv_programme_is_underway
@@ -190,7 +218,9 @@ def and_i_upload_a_file_with_duplicate_records
190
218
end
191
219
192
220
def then_i_should_see_the_import_page_with_duplicate_records
193
- expect ( page ) . to have_content ( "3 duplicate records need review" )
221
+ expect ( page ) . to have_content (
222
+ "3 records have import issues to resolve before they can be imported into Mavis"
223
+ )
194
224
end
195
225
196
226
def when_i_choose_to_keep_the_duplicate_record
0 commit comments