@@ -209,16 +209,17 @@ def test_scenario_11(page: Page) -> None:
209209 # When I process the open "A183 - Practitioner Clinic 1st Appointment" letter batch for my subject
210210 # Then my subject has been updated as follows:
211211 batch_processing (
212- page ,
213- "A183" ,
214- "Practitioner Clinic 1st Appointment" ,
215- "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent" ,
212+ page = page ,
213+ batch_type = "A183" ,
214+ batch_description = "Practitioner Clinic 1st Appointment" ,
215+ latest_event_status = "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent" ,
216216 )
217217
218218 # When I switch users to BCSS "England" as user role "Screening Centre Manager"
219219 LogoutPage (page ).log_out (close_page = False )
220220 BasePage (page ).go_to_log_in_page ()
221221 user_role = UserTools .user_login (page , "Screening Centre Manager at BCS001" , True )
222+
222223 if user_role is None :
223224 raise ValueError ("User role is none" )
224225
@@ -282,7 +283,7 @@ def test_scenario_11(page: Page) -> None:
282283
283284 # And I select Diagnostic Test Type "Colonoscopy"
284285 AdvanceFOBTScreeningEpisodePage (page ).select_test_type_dropdown_option (
285- "Colonoscopy"
286+ text = "Colonoscopy"
286287 )
287288
288289 # And I enter a Diagnostic Test First Offered Appointment Date of "tomorrow"
@@ -294,7 +295,7 @@ def test_scenario_11(page: Page) -> None:
294295
295296 # Then my subject has been updated as follows:
296297 AdvanceFOBTScreeningEpisodePage (page ).verify_latest_event_status_value (
297- "A59 - Invited for Diagnostic Test"
298+ latest_event_status = "A59 - Invited for Diagnostic Test"
298299 )
299300
300301 # When I select the advance episode option for "Attend Diagnostic Test"
@@ -309,8 +310,8 @@ def test_scenario_11(page: Page) -> None:
309310
310311 # Then my subject has been updated as follows:
311312 subject_assertion (
312- nhs_no ,
313- {
313+ nhs_number = nhs_no ,
314+ criteria = {
314315 "latest event status" : "A259 Attended Diagnostic Test" ,
315316 },
316317 )
@@ -654,8 +655,8 @@ def test_scenario_11(page: Page) -> None:
654655
655656 # Then my subject has been updated as follows:
656657 subject_assertion (
657- nhs_no ,
658- {
658+ nhs_number = nhs_no ,
659+ criteria = {
659660 "latest event status" : "A360 Post-investigation Appointment Required" ,
660661 },
661662 )
@@ -668,7 +669,11 @@ def test_scenario_11(page: Page) -> None:
668669
669670 # And I set the practitioner appointment date to "today"
670671 # And I book the earliest available post investigation appointment on this date
671- book_post_investigation_appointment (page , "The Royal Hospital (Wolverhampton)" , 1 )
672+ book_post_investigation_appointment (
673+ page = page ,
674+ site = "The Royal Hospital (Wolverhampton)" ,
675+ screening_practitioner_index = 1 ,
676+ )
672677
673678 # Then my subject has been updated as follows:
674679 subject_assertion (
@@ -681,10 +686,10 @@ def test_scenario_11(page: Page) -> None:
681686 # And there is a "A410" letter batch for my subject with the exact title "Post-Investigation Appointment Invitation Letter"
682687 # When I process the open "A410 - Post-Investigation Appointment Invitation Letter" letter batch for my subject
683688 batch_processing (
684- page ,
685- "A410" ,
686- "Post-Investigation Appointment Invitation Letter" ,
687- "A415 - Post-investigation Appointment Invitation Letter Printed" ,
689+ page = page ,
690+ batch_type = "A410" ,
691+ batch_description = "Post-Investigation Appointment Invitation Letter" ,
692+ latest_event_status = "A415 - Post-investigation Appointment Invitation Letter Printed" ,
688693 )
689694
690695 # When I view the subject
0 commit comments