Skip to content

Commit 7f75714

Browse files
Merge branch 'main' of github.com:NHSDigital/bcss-playwright into feature/BCSS-21310-selenium-to-playwright-fobtregressiontests-scenario-7
# Conflicts: # pages/screening_subject_search/advance_fobt_screening_episode_page.py # pages/screening_subject_search/reopen_fobt_screening_episode_page.py
2 parents 029992a + 493ae29 commit 7f75714

File tree

3 files changed

+545
-9
lines changed

3 files changed

+545
-9
lines changed

pages/screening_subject_search/advance_fobt_screening_episode_page.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ def __init__(self, page: Page):
7373

7474
def click_suitable_for_endoscopic_test_button(self) -> None:
7575
"""Click the 'Suitable for Endoscopic Test' button."""
76-
AdvanceFOBTScreeningEpisodePage(self.page).safe_accept_dialog(
77-
self.suitable_for_endoscopic_test_button
78-
)
76+
self.safe_accept_dialog(self.suitable_for_endoscopic_test_button)
7977

8078
def click_calendar_button(self) -> None:
8179
"""Click the calendar button to open the calendar picker."""
@@ -91,19 +89,15 @@ def select_test_type_dropdown_option_2(self, text: str) -> None:
9189

9290
def click_invite_for_diagnostic_test_button(self) -> None:
9391
"""Click the 'Invite for Diagnostic Test' button."""
94-
AdvanceFOBTScreeningEpisodePage(self.page).safe_accept_dialog(
95-
self.invite_for_diagnostic_test_button
96-
)
92+
self.safe_accept_dialog(self.invite_for_diagnostic_test_button)
9793

9894
def click_attend_diagnostic_test_button(self) -> None:
9995
"""Click the 'Attend Diagnostic Test' button."""
10096
self.click(self.attend_diagnostic_test_button)
10197

10298
def click_other_post_investigation_button(self) -> None:
10399
"""Click the 'Other Post-investigation' button."""
104-
AdvanceFOBTScreeningEpisodePage(self.page).safe_accept_dialog(
105-
self.other_post_investigation_button
106-
)
100+
self.safe_accept_dialog(self.other_post_investigation_button)
107101

108102
def get_latest_event_status_cell(self, latest_event_status: str) -> Locator:
109103
"""Get the cell containing the latest event status."""

pages/screening_subject_search/reopen_fobt_screening_episode_page.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def click_reopen_episode_for_correction_button(self) -> None:
3232

3333
def click_reopen_due_to_subject_or_patient_decision(self) -> None:
3434
"""Click the 'Reopen due to subject or patient decision' button."""
35+
self.safe_accept_dialog(self.reopen_due_to_subject_or_patient_decision)
3536

3637
def click_reopen_following_non_response_button(self) -> None:
3738
"""Click the 'Reopen following Non-Response' button."""
39+
self.safe_accept_dialog(self.reopen_following_non_response_button)

0 commit comments

Comments
 (0)