@@ -308,7 +308,6 @@ def test_scenario_4(page: Page) -> None:
308308 "A183" ,
309309 "Practitioner Clinic 1st Appointment" ,
310310 "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent" ,
311- True ,
312311 )
313312
314313 # And there is a "A183" letter batch for my subject with the exact title "GP Result (Abnormal)"
@@ -318,8 +317,7 @@ def test_scenario_4(page: Page) -> None:
318317 page ,
319318 "A183" ,
320319 "GP Result (Abnormal)" ,
321- "A167 - GP Abnormal FOBT Result Sent" ,
322- True ,
320+ "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent" ,
323321 )
324322
325323 # When I switch users to BCSS "England" as user role "Screening Centre Manager"
@@ -343,6 +341,9 @@ def test_scenario_4(page: Page) -> None:
343341 ReasonForCancellationOptions .PATIENT_CANCELLED_TO_CONSIDER
344342 )
345343
344+ # And I press OK on my confirmation prompt
345+ AppointmentDetailPage (page ).click_save_button (accept_dialog = True )
346+
346347 # Then my subject has been updated as follows:
347348 subject_assertion (
348349 nhs_no ,
@@ -356,9 +357,9 @@ def test_scenario_4(page: Page) -> None:
356357 batch_processing (
357358 page ,
358359 "J4" ,
359- "Appointment Cancellation (Patient to Consider)" ,
360+ "Practitioner Clinic 1st Appt Cancelled (Patient To Consider)" ,
360361 "J22 - Appointment Cancellation letter sent (Patient to Consider)" ,
361- False ,
362+ True ,
362363 )
363364
364365 # When I switch users to BCSS "England" as user role "Hub Manager"
@@ -397,7 +398,6 @@ def test_scenario_4(page: Page) -> None:
397398 "J20" ,
398399 "Practitioner Clinic 1st Appt Cancelled (Patient To Reschedule)" ,
399400 "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent" ,
400- True ,
401401 )
402402
403403 # When I switch users to BCSS "England" as user role "Screening Centre Manager"
@@ -421,14 +421,10 @@ def test_scenario_4(page: Page) -> None:
421421 ReasonForCancellationOptions .PATIENT_UNSUITABLE_RECENTLY_SCREENED
422422 )
423423
424- # Then my subject has been updated as follows:
425- subject_assertion (
426- nhs_no ,
427- {
428- "latest event status" : "J24 Screening Centre Discharge Patient" ,
429- },
430- )
424+ # And I press OK on my confirmation prompt TODO: This step is resulting in a 403 forbidden error
425+ AppointmentDetailPage (page ).click_save_button (accept_dialog = True )
431426
427+ # Then my subject has been updated as follows:
432428 # And there is a "J24" letter batch for my subject with the exact title "Subject Discharge (Screening Centre)"
433429 # When I process the open "J24 - Subject Discharge (Screening Centre)" letter batch for my subject
434430 # Then my subject has been updated as follows:
@@ -437,7 +433,6 @@ def test_scenario_4(page: Page) -> None:
437433 "J24" ,
438434 "Subject Discharge (Screening Centre)" ,
439435 "J25 - Patient discharge sent (Screening Centre discharge patient)" ,
440- True ,
441436 )
442437
443438 # When I switch users to BCSS "England" as user role "Hub Manager"
@@ -453,7 +448,6 @@ def test_scenario_4(page: Page) -> None:
453448 "J25" ,
454449 "GP Discharge (Discharged By Screening Centre)" ,
455450 "P202 - Waiting Completion of Outstanding Events" ,
456- False ,
457451 )
458452
459453 # When I view the subject
@@ -462,7 +456,7 @@ def test_scenario_4(page: Page) -> None:
462456 # And I select the advance episode option for "Record Diagnosis Date"
463457 AdvanceFOBTScreeningEpisodePage (page ).click_record_diagnosis_date_button ()
464458
465- # # TODO: And I select Diagnosis Date Reason "Patient choice"
459+ # And I select Diagnosis Date Reason "Patient choice"
466460 RecordDiagnosisDatePage (page ).record_diagnosis_date_with_reason (
467461 date = datetime .now (), reason_text = "Patient Choice"
468462 )
0 commit comments