22import logging
33from datetime import datetime
44from playwright .sync_api import Page
5- from pages .datasets .cancer_audit_datasets_page import YesNoOptions
5+ from pages .datasets .cancer_audit_datasets_page import (
6+ RadiologyYesNoOptions ,
7+ TaggingAgentDrugAdministeredOptions ,
8+ YesNoOptions ,
9+ )
610from pages .datasets .investigation_dataset_page import (
711 DrugTypeOptions ,
812 ExaminationQualityOptions ,
@@ -475,40 +479,40 @@ def test_scenario_8(page: Page) -> None:
475479 # screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
476480 # SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
477481
478- # And I select Diagnostic Test Type "CT Colonography"
479- AdvanceFOBTScreeningEpisodePage (page ).select_test_type_dropdown_option (
480- "CT Colonography"
481- )
482- # And I enter a Diagnostic Test First Offered Appointment Date of "today"
483- AdvanceFOBTScreeningEpisodePage (page ).click_calendar_button ()
484- CalendarPicker (page ).v1_calender_picker (datetime .today ())
482+ # # And I select Diagnostic Test Type "CT Colonography"
483+ # AdvanceFOBTScreeningEpisodePage(page).select_test_type_dropdown_option(
484+ # "CT Colonography"
485+ # )
486+ # # And I enter a Diagnostic Test First Offered Appointment Date of "today"
487+ # AdvanceFOBTScreeningEpisodePage(page).click_calendar_button()
488+ # CalendarPicker(page).v1_calender_picker(datetime.today())
485489
486- # And I advance the subject's episode for "Invite for Diagnostic Test >>"
487- AdvanceFOBTScreeningEpisodePage (page ).click_invite_for_diagnostic_test_button ()
490+ # # And I advance the subject's episode for "Invite for Diagnostic Test >>"
491+ # AdvanceFOBTScreeningEpisodePage(page).click_invite_for_diagnostic_test_button()
488492
489- # Then my subject has been updated as follows:
490- criteria = {
491- "which diagnostic test" : "Latest test in latest episode" ,
492- "diagnostic test proposed type" : "CT Colonography" ,
493- "latest event status" : "A59 Invited for Diagnostic Test" ,
494- }
495- subject_assertion (nhs_no , criteria )
493+ # # Then my subject has been updated as follows:
494+ # criteria = {
495+ # "which diagnostic test": "Latest test in latest episode",
496+ # "diagnostic test proposed type": "CT Colonography",
497+ # "latest event status": "A59 Invited for Diagnostic Test",
498+ # }
499+ # subject_assertion(nhs_no, criteria)
496500
497- # When I select the advance episode option for "Attend Diagnostic Test"
498- screening_subject_page_searcher .navigate_to_subject_summary_page (page , nhs_no )
499- SubjectScreeningSummaryPage (page ).click_advance_fobt_screening_episode_button ()
500- AdvanceFOBTScreeningEpisodePage (page ).click_attend_diagnostic_test_button ()
501+ # # When I select the advance episode option for "Attend Diagnostic Test"
502+ # screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
503+ # SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
504+ # AdvanceFOBTScreeningEpisodePage(page).click_attend_diagnostic_test_button()
501505
502- # And I attend the subject's diagnostic test today
503- AttendDiagnosticTestPage (page ).click_calendar_button ()
504- CalendarPicker (page ).v1_calender_picker (datetime .today ())
505- AttendDiagnosticTestPage (page ).click_save_button ()
506+ # # And I attend the subject's diagnostic test today
507+ # AttendDiagnosticTestPage(page).click_calendar_button()
508+ # CalendarPicker(page).v1_calender_picker(datetime.today())
509+ # AttendDiagnosticTestPage(page).click_save_button()
506510
507- # Then my subject has been updated as follows:
508- criteria = {
509- "latest event status" : "A259 Attended Diagnostic Test" ,
510- }
511- subject_assertion (nhs_no , criteria )
511+ # # Then my subject has been updated as follows:
512+ # criteria = {
513+ # "latest event status": "A259 Attended Diagnostic Test",
514+ # }
515+ # subject_assertion(nhs_no, criteria)
512516
513517 # When I view the subject
514518 screening_subject_page_searcher .navigate_to_subject_summary_page (page , nhs_no )
@@ -529,11 +533,11 @@ def test_scenario_8(page: Page) -> None:
529533 # And I set the following fields and values within the Contrast, Tagging & Drug Information:
530534 # And I add the following Additional Bowel Preparation drugs and values within the Investigation Dataset for this subject:
531535 contrast_tagging_and_drug = {
532- "iv buscopan administered" : YesNoOptions .NO ,
536+ "iv buscopan administered" : RadiologyYesNoOptions .NO ,
533537 "contraindicated" : YesNoOptions .NO ,
534- "iv contrast administered" : YesNoOptions .NO ,
535- "tagging agent given" : YesNoOptions .YES ,
536- "additional bowel preparation administered" : YesNoOptions .YES ,
538+ "iv contrast administered" : RadiologyYesNoOptions .NO ,
539+ "tagging agent given" : TaggingAgentDrugAdministeredOptions .YES ,
540+ "additional bowel preparation administered" : RadiologyYesNoOptions .YES ,
537541 "drug_type1" : DrugTypeOptions .PICOLAX ,
538542 "drug_dose1" : "1" ,
539543 }
0 commit comments