Skip to content

Commit 520d3d6

Browse files
Code change is implemeted for JIRA Ticket BCSS - 20615 - Selenium to Playwright - Regression Tests - Subject Episodes - Diagnosis Date
1 parent f21447f commit 520d3d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/screening_subject_search/advance_fobt_screening_episode_page.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def __init__(self, page: Page):
1616
)
1717
self.calendar_button = self.page.get_by_role("button", name="Calendar")
1818
self.test_type_dropdown = self.page.locator("#UI_EXT_TEST_TYPE_2233")
19+
self.advance_checkbox = self.page.get_by_label("There are some events available which should only be used in exceptional circumstances. If you wish to see them, check this box")
20+
1921
self.invite_for_diagnostic_test_button = self.page.get_by_role(
2022
"button", name="Invite for Diagnostic Test >>"
2123
)
@@ -38,6 +40,10 @@ def __init__(self, page: Page):
3840
"button", name="Record Diagnosis Date"
3941
)
4042

43+
def select_advance_check(self) -> None:
44+
"""Selects the 'Advance FOBT' checkbox."""
45+
self.advance_checkbox.check()
46+
4147
def click_suitable_for_endoscopic_test_button(self) -> None:
4248
"""Click the 'Suitable for Endoscopic Test' button."""
4349
AdvanceFOBTScreeningEpisodePage(self.page).safe_accept_dialog(
@@ -84,6 +90,8 @@ def verify_latest_event_status_value(self, latest_event_status: str) -> None:
8490
except Exception:
8591
pytest.fail(f"Subject does not have the status: {latest_event_status}")
8692

93+
94+
8795
def click_record_other_post_investigation_contact_button(self) -> None:
8896
"""Click the 'Record other post-investigation contact' button."""
8997
self.click(self.record_other_post_investigation_contact_button)

0 commit comments

Comments
 (0)