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