@@ -58,6 +58,7 @@ class pg_sessions:
5858 BTN_UPDATE_GILLICK_ASSESSMENT = "Update your assessment"
5959 LNK_CONSENT_FORM = "View parental consent form ("
6060 LNK_COULD_NOT_VACCINATE = "Could not vaccinate"
61+ LNK_CONSENT_REFUSED = "Consent refused"
6162
6263 def __get_display_formatted_date (self , date_to_format : str ) -> str :
6364 _parsed_date = datetime .strptime (date_to_format , "%Y%m%d" )
@@ -134,6 +135,9 @@ def click_edit_gillick_competence(self):
134135 def click_could_not_vaccinate (self ):
135136 self .po .perform_action (locator = self .LNK_COULD_NOT_VACCINATE , action = actions .CLICK_LINK )
136137
138+ def click_consent_refused (self ):
139+ self .po .perform_action (locator = self .LNK_CONSENT_REFUSED , action = actions .CLICK_LINK )
140+
137141 def add_gillick_competence (self , is_competent : bool , competence_details : str ) -> None :
138142 self .__set_gillick_consent (is_add = True , is_competent = is_competent , competence_details = competence_details )
139143
@@ -315,12 +319,13 @@ def update_triage_outcome_consent_refused(self, file_paths):
315319 self .click_child_full_name ()
316320 self .click_get_consent_responses ()
317321 self .consent_page .service_refuse_consent ()
318- self .dashboard_page .go_to_dashboard ()
319- self .dashboard_page .click_sessions ()
320- self .click_scheduled ()
321- self .click_school1 ()
322- self .click_record_vaccinations ()
323- self .click_could_not_vaccinate ()
322+ # self.dashboard_page.go_to_dashboard()
323+ # self.dashboard_page.click_sessions()
324+ # self.click_scheduled()
325+ # self.click_school1()
326+ # self.click_record_vaccinations()
327+ # self.click_could_not_vaccinate()
328+ self .click_consent_refused ()
324329 self .click_child_full_name ()
325330 self .click_activity_log ()
326331 self .verify_activity_log_entry (consent_given = False )
0 commit comments