@@ -72,9 +72,7 @@ def verify_subject_search_results_title_subject_screening_summary(self) -> None:
7272
7373 def verify_subject_search_results_title_subject_search_results (self ) -> None :
7474 """Verify that the subject search results title contains 'Subject Search Results'."""
75- self .bowel_cancer_screening_page_title_contains_text (
76- "Subject Search Results"
77- )
75+ self .bowel_cancer_screening_page_title_contains_text ("Subject Search Results" )
7876
7977 def get_latest_event_status_cell (self , latest_event_status : str ) -> Locator :
8078 """Get the latest event status cell by its name."""
@@ -208,25 +206,34 @@ def verify_note_link_present(self, note_type_name: str) -> None:
208206 AssertionError: If the link is not visible on the page.
209207 """
210208 logging .info (f"Checking if the '{ note_type_name } ' link is visible." )
211- note_link_locator = self .page .get_by_role ("link" , name = f"({ note_type_name } )" ) # Dynamic locator for the note type link
212- assert note_link_locator .is_visible (), f"'{ note_type_name } ' link is not visible, but it should be."
213- logging .info (f"Verified: '{ note_type_name } ' link is visible." )
209+ note_link_locator = self .page .get_by_role (
210+ "link" , name = f"({ note_type_name } )"
211+ ) # Dynamic locator for the note type link
212+ assert (
213+ note_link_locator .is_visible ()
214+ ), f"'{ note_type_name } ' link is not visible, but it should be."
215+ logging .info (f"Verified: '{ note_type_name } ' link is visible." )
214216
215217 def verify_note_link_not_present (self , note_type_name : str ) -> None :
216218 """
217- Verifies that the link for the specified note type is not visible on the page.
219+ Verifies that the link for the specified note type is not visible on the page.
218220
219- Args:
220- note_type_name (str): The name of the note type to check (e.g., 'Additional Care Note', 'Episode Note').
221+ Args:
222+ note_type_name (str): The name of the note type to check (e.g., 'Additional Care Note', 'Episode Note').
221223
222- Raises:
223- AssertionError: If the link is visible on the page.
224- """
224+ Raises:
225+ AssertionError: If the link is visible on the page.
226+ """
225227 logging .info (f"Checking if the '{ note_type_name } ' link is not visible." )
226- note_link_locator = self .page .get_by_role ("link" , name = f"({ note_type_name } )" ) # Dynamic locator for the note type link
227- assert not note_link_locator .is_visible (), f"'{ note_type_name } ' link is visible, but it should not be."
228+ note_link_locator = self .page .get_by_role (
229+ "link" , name = f"({ note_type_name } )"
230+ ) # Dynamic locator for the note type link
231+ assert (
232+ not note_link_locator .is_visible ()
233+ ), f"'{ note_type_name } ' link is visible, but it should not be."
228234 logging .info (f"Verified: '{ note_type_name } ' link is not visible." )
229235
236+
230237class ChangeScreeningStatusOptions (Enum ):
231238 """Enum for Change Screening Status options."""
232239
0 commit comments