@@ -60,9 +60,7 @@ def __init__(self, page: Page):
6060
6161 def click_suitable_for_endoscopic_test_button (self ) -> None :
6262 """Click the 'Suitable for Endoscopic Test' button."""
63- AdvanceFOBTScreeningEpisodePage (self .page ).safe_accept_dialog (
64- self .suitable_for_endoscopic_test_button
65- )
63+ self .safe_accept_dialog (self .suitable_for_endoscopic_test_button )
6664
6765 def click_calendar_button (self ) -> None :
6866 """Click the calendar button to open the calendar picker."""
@@ -78,19 +76,15 @@ def select_test_type_dropdown_option_2(self, text: str) -> None:
7876
7977 def click_invite_for_diagnostic_test_button (self ) -> None :
8078 """Click the 'Invite for Diagnostic Test' button."""
81- AdvanceFOBTScreeningEpisodePage (self .page ).safe_accept_dialog (
82- self .invite_for_diagnostic_test_button
83- )
79+ self .safe_accept_dialog (self .invite_for_diagnostic_test_button )
8480
8581 def click_attend_diagnostic_test_button (self ) -> None :
8682 """Click the 'Attend Diagnostic Test' button."""
8783 self .click (self .attend_diagnostic_test_button )
8884
8985 def click_other_post_investigation_button (self ) -> None :
9086 """Click the 'Other Post-investigation' button."""
91- AdvanceFOBTScreeningEpisodePage (self .page ).safe_accept_dialog (
92- self .other_post_investigation_button
93- )
87+ self .safe_accept_dialog (self .other_post_investigation_button )
9488
9589 def get_latest_event_status_cell (self , latest_event_status : str ) -> Locator :
9690 """Get the cell containing the latest event status."""
@@ -134,18 +128,16 @@ def check_advance_checkbox(self) -> None:
134128
135129 def click_suitable_for_radiological_test_button (self ) -> None :
136130 """Click the 'Suitable for Radiological Test' button."""
137- AdvanceFOBTScreeningEpisodePage (self .page ).safe_accept_dialog (
138- self .suitable_for_radiological_test_button
139- )
131+ self .safe_accept_dialog (self .suitable_for_radiological_test_button )
140132
141133 def click_decision_not_to_continue_with_diagnostic_test (self ) -> None :
142134 """Click the 'Decision not to Continue with Diagnostic Test' button."""
143- AdvanceFOBTScreeningEpisodePage ( self . page ) .safe_accept_dialog (
135+ self .safe_accept_dialog (
144136 self .decision_not_to_continue_with_diagnostic_test_button
145137 )
146138
147139 def click_waiting_decision_to_proceed_with_diagnostic_test (self ) -> None :
148140 """Click the 'Waiting Decision to Proceed with Diagnostic Test' button."""
149- AdvanceFOBTScreeningEpisodePage ( self . page ) .safe_accept_dialog (
141+ self .safe_accept_dialog (
150142 self .waiting_decision_to_proceed_with_diagnostic_test_button
151143 )
0 commit comments