11import pytest
2- from playwright .sync_api import Page , expect
2+ from playwright .sync_api import Page
33from pages .logout .log_out_page import Logout
44from pages .base_page import BasePage
55from pages .screening_practitioner_appointments .appointment_calendar_page import AppointmentCalendar
66from pages .screening_practitioner_appointments .appointment_detail_page import AppointmentDetail
77from pages .screening_practitioner_appointments .screening_practitioner_appointments import (
88 ScreeningPractitionerAppointmentsPage ,
99)
10- from pages .screening_practitioner_appointments .screening_practitioner_day_view import ScreeningPractitionerDayView
11- from pages .screening_practitioner_appointments .subject_datasets import (
12- SubjectDatasets ,
10+ from pages .datasets .subject_datasets_page import (
11+ SubjectDatasetsPage ,
12+ )
13+ from pages .datasets .colonoscopy_dataset_page import (
14+ ColonoscopyDatasetsPage ,
1315 FitForColonoscopySspOptions ,
1416 AsaGradeOptions ,
1517)
@@ -71,11 +73,11 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None:
7173
7274 AppointmentCalendar (page ).click_view_appointments_on_this_day_button ()
7375 ScreeningPractitionerDayView (page ).click_calendar_button ()
74- date_from_util = datetime (2025 , 4 , 29 )
76+ date_from_util = datetime (2025 , 4 , 30 )
7577 CalendarPicker (page ).v1_calender_picker (date_from_util )
7678
7779 # Select subject from inital test data util
78- ScreeningPractitionerDayView (page ).click_patient_link ("STARLESS BLUSH " )
80+ ScreeningPractitionerDayView (page ).click_patient_link ("DIVIDEND MUZZLE " )
7981
8082 # Select Attendance radio button, tick Attended checkbox, set Attended Date to yesterday's (system) date and then press Save
8183 AppointmentDetail (page ).check_attendance_radio ()
@@ -88,7 +90,7 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None:
8890 # Repeat for x Abnormal patients
8991
9092 # Navigate to the 'Subject Screening Summary' screen for the 1st Abnormal patient
91- nhs_no = "9937265193 " # Test NHS NO for Scaliding Cod
93+ nhs_no = "9852356488 " # Test NHS NO for DIVIDEND MUZZLE
9294 verify_subject_event_status_by_nhs_no (
9395 page , nhs_no , "J10 - Attended Colonoscopy Assessment Appointment"
9496 )
@@ -97,23 +99,23 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None:
9799 SubjectScreeningSummary (page ).click_datasets_link ()
98100
99101 # Click on 'Show Dataset' next to the Colonoscopy Assessment
100- SubjectDatasets (page ).click_show_datasets ()
102+ SubjectDatasetsPage (page ).click_colonoscopy_show_datasets ()
101103
102104 # Populate Colonoscopy Assessment Details fields
103105
104106 # ASA Grade - I - Fit
105- SubjectDatasets (page ).select_asa_grade_option (AsaGradeOptions .FIT .value )
107+ ColonoscopyDatasetsPage (page ).select_asa_grade_option (AsaGradeOptions .FIT .value )
106108
107109 # Fit for Colonoscopy (SSP) - Yes
108- SubjectDatasets (page ).select_fit_for_colonoscopy_option (
110+ ColonoscopyDatasetsPage (page ).select_fit_for_colonoscopy_option (
109111 FitForColonoscopySspOptions .YES .value
110112 )
111113
112114 # Click 'Yes' for Dataset Complete?
113- SubjectDatasets (page ).click_dataset_complete_radio_button_yes ()
115+ ColonoscopyDatasetsPage (page ).click_dataset_complete_radio_button_yes ()
114116
115117 # Click Save Dataset button
116- SubjectDatasets (page ).save_dataset ()
118+ ColonoscopyDatasetsPage (page ).save_dataset ()
117119
118120 # Click Back
119121 BasePage (page ).click_back_button ()
0 commit comments