|
25 | 25 | from pages.screening_practitioner_appointments.appointment_calendar_page import ( |
26 | 26 | AppointmentCalendar, |
27 | 27 | ) |
| 28 | +from pages.screening_subject_search.attend_diagnostic_test_page import ( |
| 29 | + AttendDiagnosticTest, |
| 30 | +) |
28 | 31 | from utils.user_tools import UserTools |
29 | 32 | from utils.load_properties_file import PropertiesFile |
30 | 33 | from utils.screening_subject_page_searcher import verify_subject_event_status_by_nhs_no |
@@ -81,7 +84,7 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None: |
81 | 84 |
|
82 | 85 | # Select Attendance radio button, tick Attended checkbox, set Attended Date to yesterday's (system) date and then press Save |
83 | 86 | AppointmentDetail(page).check_attendance_radio() |
84 | | - AppointmentDetail(page).check_attendented_check_box() |
| 87 | + AppointmentDetail(page).check_attended_check_box() |
85 | 88 | AppointmentDetail(page).click_calendar_button() |
86 | 89 | CalendarPicker(page).v1_calender_picker(datetime.today() - timedelta(1)) |
87 | 90 | AppointmentDetail(page).click_save_button() |
@@ -145,10 +148,10 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None: |
145 | 148 | AdvanceFOBTScreeningEpisode(page).click_attend_diagnostic_test_button() |
146 | 149 |
|
147 | 150 | # Select Colonoscopy from drop down list. Enter the actual appointment date as today's date and select 'Save' |
148 | | - page.locator("#UI_CONFIRMED_TYPE_OF_TEST").select_option(label="Colonoscopy") |
149 | | - page.get_by_role("button", name="Calendar").click() |
| 151 | + AttendDiagnosticTest.select_actual_type_of_test_dropdown_option("Colonoscopy") |
| 152 | + AttendDiagnosticTest.click_calendar_button() |
150 | 153 | CalendarPicker(page).v1_calender_picker(datetime.today()) |
151 | | - page.get_by_role("button", name="Save").click() |
| 154 | + AttendDiagnosticTest.click_save_button() |
152 | 155 | SubjectScreeningSummary(page).verify_latest_event_status_value( |
153 | 156 | "A259 - Attended Diagnostic Test" |
154 | 157 | ) |
|
0 commit comments