@@ -304,7 +304,7 @@ def test_scenario_8(page: Page) -> None:
304304 # UserTools.user_login(page, "Hub Manager at BCS01")
305305
306306 # # And I process the open "A183 - GP Result (Abnormal)" letter batch for my subject
307- # TODO: LEAVE COMMENTED - is this needed? Subject is already at A172 DNA Diagnostic Test (line 279)
307+ # NOTE LEAVE COMMENTED - is this needed? Subject is already at A172 DNA Diagnostic Test (line 279)
308308 # # Then my subject has been updated as follows:
309309 # batch_processing(
310310 # page,
@@ -363,15 +363,14 @@ def test_scenario_8(page: Page) -> None:
363363 # And there is a "A397" letter batch for my subject with the exact title "Discharge from screening round - no contact (letter to patient)"
364364 # When I process the open "A397" letter batch for my subject
365365 # Then my subject has been updated as follows:
366- # | Latest event status | A391 Patient Discharge Letter Printed - No Patient Contact |
367- # And there is a "A391" letter batch for my subject with the exact title "Discharge from screening round - no contact (letter to GP)"
368366 batch_processing (
369367 page ,
370368 "A397" ,
371369 "Discharge from screening round - no contact (letter to patient)" ,
372370 "A391 - Patient Discharge Letter Printed - No Patient Contact" ,
373371 )
374372
373+ # And there is a "A391" letter batch for my subject with the exact title "Discharge from screening round - no contact (letter to GP)"
375374 # When I process the open "A391 - Discharge from screening round - no contact (letter to GP)" letter batch for my subject
376375 batch_processing (
377376 page ,
@@ -565,14 +564,17 @@ def test_scenario_8(page: Page) -> None:
565564 SubjectScreeningSummaryPage (page ).click_advance_fobt_screening_episode_button ()
566565 AdvanceFOBTScreeningEpisodePage (page ).click_enter_diagnostic_test_outcome_button ()
567566
568- # And I select Outcome of Diagnostic Test "Refer Another Diagnostic Test" TODO: Add option to Enum
567+ # And I select Outcome of Diagnostic Test "Refer Another Diagnostic Test"
569568 DiagnosticTestOutcomePage (page ).select_test_outcome_option (
570- OutcomeOfDiagnosticTest .FAILED_TEST_REFER_ANOTHER
569+ OutcomeOfDiagnosticTest .REFER_ANOTHER_DIAGNOSTIC_TEST
571570 )
571+
572572 # # TODO: And I select Radiological or Endoscopic Referral value "Radiological"
573573 # # And I select Reason for Onward Referral value "Currently Unsuitable for Endoscopic Referral"
574574 # # And I set any onward referring clinician
575- # # And I save the Diagnostic Test Outcome
575+
576+ # And I save the Diagnostic Test Outcome
577+ DiagnosticTestOutcomePage (page ).click_save_button ()
576578
577579 # Then my subject has been updated as follows:
578580 criteria = {
@@ -632,11 +634,22 @@ def test_scenario_8(page: Page) -> None:
632634 # And I view the latest practitioner appointment in the subject's episode
633635 attendance .mark_as_attended_today ()
634636
635- # # Then my subject has been updated as follows: TODO: Why is this checked twice?
636- # # | Latest episode includes event status | A416 Post-investigation Appointment Attended |
637- # # And my subject has been updated as follows:
638- # # | Latest episode includes event status | A316 Post-investigation Appointment Attended |
639- # # | Latest event status | A430 Post-investigation Appointment Attended - Diagnostic Result Letter not Printed |
637+ # Then my subject has been updated as follows:
638+ subject_assertion (
639+ nhs_no ,
640+ {
641+ "latest episode includes event status" : "A416 Post-investigation Appointment Attended" ,
642+ },
643+ )
644+
645+ # And my subject has been updated as follows:
646+ subject_assertion (
647+ nhs_no ,
648+ {
649+ "latest episode includes event status" : "A316 Post-investigation Appointment Attended" ,
650+ "latest event status" : "A430 Post-investigation Appointment Attended - Diagnostic Result Letter not Printed" ,
651+ },
652+ )
640653
641654 # And there is a "A430" letter batch for my subject with the exact title "Result Letters Following Post-investigation Appointment"
642655 # When I process the open "A430" letter batch for my subject
@@ -806,17 +819,31 @@ def test_scenario_8(page: Page) -> None:
806819 }
807820 subject_assertion (nhs_no , criteria )
808821
809- # # TODO: When I select the advance episode option for "Record other post-investigation contact"
822+ # When I select the advance episode option for "Record other post-investigation contact"
823+ SubjectScreeningSummaryPage (page ).click_advance_fobt_screening_episode_button ()
824+ AdvanceFOBTScreeningEpisodePage (page ).click_record_other_post_investigation_contact_button ()
825+
810826 # And I record contact with the subject with outcome "Post-investigation Appointment Not Required"
811827 ContactWithPatientPage (page ).record_post_investigation_appointment_not_required ()
812828
813- # # Then my subject has been updated as follows: TODO: Why is this checked twice?
814- # # | Latest episode includes event status | A323 Post-investigation Appointment NOT Required |
815829 # # Then my subject has been updated as follows:
816- # # | Latest episode includes event status | A317 Post-investigation Contact Made |
817- # # | Latest event status | A318 Post-investigation Appointment NOT Required - Result Letter Created |
818- # # And there is a "A318" letter batch for my subject with the exact title "Result Letters - No Post-investigation Appointment"
830+ subject_assertion (
831+ nhs_no ,
832+ {
833+ "latest episode includes event status" : "A323 Post-investigation Appointment NOT Required" ,
834+ },
835+ )
836+
837+ # # Then my subject has been updated as follows:
838+ subject_assertion (
839+ nhs_no ,
840+ {
841+ "latest episode includes event status" : "A317 Post-investigation Contact Made" ,
842+ "latest event status" : "A318 Post-investigation Appointment NOT Required - Result Letter Created" ,
843+ },
844+ )
819845
846+ # # And there is a "A318" letter batch for my subject with the exact title "Result Letters - No Post-investigation Appointment"
820847 # # When I process the open "A318" letter batch for my subject
821848 # # Then my subject has been updated as follows:
822849 batch_processing (
0 commit comments