@@ -29,6 +29,9 @@ def __init__(self, page: Page):
2929 self .test_outcome_dropdown = self .page .get_by_label (
3030 "Outcome of Diagnostic Test"
3131 )
32+ self .reason_for_sympptomatic_referral_dropdown = self .page .get_by_label (
33+ "Reason for Symptomatic Referral"
34+ )
3235 self .save_button = self .page .get_by_role ("button" , name = "Save" )
3336 self .referral_procedure_dropdown = self .page .locator (
3437 "#UI_REFERRAL_PROCEDURE_TYPE"
@@ -56,6 +59,25 @@ def select_test_outcome_option(self, option: str) -> None:
5659 """
5760 self .test_outcome_dropdown .select_option (option )
5861
62+ def verify_reason_for_symptomatic_referral (self , symptomatic_reason : str ) -> None :
63+ """
64+ Verify reason for symptomatic referral is visible.
65+
66+ Args:
67+ symptomatic_reason(str): The accessible name or visible text of the symptomatic reason cell to verify.
68+ """
69+ expect (
70+ self .page .get_by_role ("cell" , name = symptomatic_reason ).nth (1 )
71+ ).to_be_visible ()
72+
73+ def select_reason_for_symptomatic_referral_option (self , option : str ) -> None :
74+ """Select an option from the reason for symptomatic referral dropdown.
75+
76+ Args:
77+ option (str): option (str): The option to select from the Reason For Symptomatic Referral options.
78+ """
79+ self .reason_for_sympptomatic_referral_dropdown .select_option (option )
80+
5981 def click_save_button (self ) -> None :
6082 """Click the 'Save' button."""
6183 self .click (self .save_button )
@@ -89,3 +111,11 @@ class OutcomeOfDiagnosticTest(StrEnum):
89111 REFER_SURVEILLANCE = "20365"
90112 INVESTIGATION_COMPLETE = "20360"
91113 REFER_ANOTHER_DIAGNOSTIC_TEST = "20364"
114+
115+
116+ class ReasonForSymptomaticReferral (StrEnum ):
117+ """Enum for Symptomatic Referral reason options."""
118+
119+ POLYP_EXCISION = "203011"
120+ CORRECTIVE_SURGERY = "203012"
121+ SUSPECTED_CANCER_SURGERY = "203013"
0 commit comments