@@ -55,17 +55,18 @@ def test_compartment_4(page: Page, smokescreen_properties: dict) -> None:
5555 smokescreen_properties ["c4_eng_number_of_appointments_to_book" ]
5656 )
5757
58- logging .info ("Compartment 4 - Setting up appointments" )
59- logging .info ("Logging in as Screening Centre Manager at BCS001" )
58+ logging .info (
59+ f"Compartment 4 - Setting up appointments for { smokescreen_properties ["c4_eng_weeks_to_make_available" ]} Weeks"
60+ )
6061 UserTools .user_login (page , "Screening Centre Manager at BCS001" )
6162 BasePage (page ).go_to_screening_practitioner_appointments_page ()
6263 ScreeningPractitionerAppointmentsPage (page ).go_to_set_availability_page ()
6364 SetAvailabilityPage (page ).go_to_practitioner_availability_page ()
6465 PractitionerAvailabilityPage (page ).select_site_dropdown_option (
65- "THE ROYAL HOSPITAL (WOLVERHAMPTON)"
66+ smokescreen_properties [ "c4_eng_site_name1" ]
6667 )
6768 PractitionerAvailabilityPage (page ).select_practitioner_dropdown_option (
68- "Astonish, Ethanol"
69+ smokescreen_properties [ "c4_eng_practitioner_name" ]
6970 )
7071 PractitionerAvailabilityPage (page ).click_calendar_button ()
7172 CalendarPicker (page ).select_day (datetime .today ())
@@ -82,9 +83,10 @@ def test_compartment_4(page: Page, smokescreen_properties: dict) -> None:
8283 )
8384 Logout (page ).log_out (close_page = False )
8485
85- logging .info ("Compartment 4 - Booking subjects to appointments" )
86+ logging .info (
87+ f"Compartment 4 - Booking { smokescreen_properties ["c4_eng_number_of_appointments_to_book" ]} subjects to appointments"
88+ )
8689 ScreeningPractitionerAppointmentsPage (page ).go_to_log_in_page ()
87- logging .info ("Logging in as Hub Manager State Registered at BCS01" )
8890 UserTools .user_login (page , "Hub Manager State Registered at BCS01" )
8991
9092 BasePage (page ).go_to_screening_practitioner_appointments_page ()
@@ -100,12 +102,12 @@ def test_compartment_4(page: Page, smokescreen_properties: dict) -> None:
100102 ColonoscopyAssessmentAppointments (page ).filter_by_nhs_number (nhs_number )
101103 ColonoscopyAssessmentAppointments (page ).click_nhs_number_link (nhs_number_spaced )
102104 BookAppointmentPage (page ).select_screening_centre_dropdown_option (
103- "BCS001 - Wolverhampton Bowel Cancer Screening Centre"
105+ smokescreen_properties [ "c4_eng_centre_name" ]
104106 )
105107 BookAppointmentPage (page ).select_site_dropdown_option (
106108 [
107- "The Royal Hospital (Wolverhampton) (? km)" ,
108- "The Royal Hospital (Wolverhampton) (? km) (attended)" ,
109+ f" { smokescreen_properties [ "c4_eng_site_name2" ] } (? km)" ,
110+ f" { smokescreen_properties [ "c4_eng_site_name2" ] } (? km) (attended)" ,
109111 ]
110112 )
111113
0 commit comments