|
11 | 11 | from pages.screening_subject_search.advance_fobt_screening_episode_page import ( |
12 | 12 | AdvanceFOBTScreeningEpisode, |
13 | 13 | ) |
| 14 | +from pages.screening_practitioner_appointments.screening_practitioner_day_view import ( |
| 15 | + ScreeningPractitionerDayView, |
| 16 | +) |
14 | 17 | from utils.user_tools import UserTools |
15 | 18 | from utils.load_properties_file import PropertiesFile |
16 | 19 | from utils.screening_subject_page_searcher import verify_subject_event_status_by_nhs_no |
@@ -54,12 +57,12 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None: |
54 | 57 | page.locator("#UI_SITE").select_option(label="The Royal Hospital (Wolverhampton)") |
55 | 58 |
|
56 | 59 | page.get_by_role("button", name="View appointments on this day").click() |
57 | | - page.get_by_role("button", name="Calendar").click() |
| 60 | + ScreeningPractitionerDayView(page).click_calendar_button() |
58 | 61 | date_from_util = datetime(2025, 4, 29) |
59 | 62 | CalendarPicker(page).v1_calender_picker(date_from_util) |
60 | 63 |
|
61 | 64 | # Select subject from inital test data util |
62 | | - page.get_by_role("link", name="DELIRIOUS DELUXE").click() |
| 65 | + ScreeningPractitionerDayView(page).click_patient_link("STARLESS BLUSH") |
63 | 66 |
|
64 | 67 | # Select Attendance radio button, tick Attended checkbox, set Attended Date to yesterday's (system) date and then press Save |
65 | 68 | page.get_by_role("radio", name="Attendance").check() |
|
0 commit comments