Skip to content

Commit 9bf4d13

Browse files
moved a few values into the properties file
1 parent 852c97f commit 9bf4d13

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

tests/smokescreen/bcss_smokescreen_tests.properties

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
c4_eng_site_name2=The Royal Hospital (Wolverhampton)
3333
c4_eng_practitioner_name=Astonish, Ethanol
3434

35+
# ----------------------------------
36+
# compartment 5
37+
# ----------------------------------
38+
c5_eng_appointment_type=Colonoscopy Assessment
39+
c5_eng_screening_centre=BCS001 - Wolverhampton Bowel Cancer Screening Centre
40+
c5_eng_site=(all)
41+
3542
# ----------------------------------
3643
# compartment 6
3744
# ----------------------------------
@@ -78,7 +85,7 @@
7885
# ----------------------------------
7986
# compartment 5
8087
# ----------------------------------
81-
# c5_eng_number_of_screening_appts_to_attend=6
88+
# c5_eng_number_of_screening_appts_to_attend=5
8289

8390
# ----------------------------------
8491
# compartment 6

tests/smokescreen/test_compartment_5.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,15 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None:
5656
ScreeningPractitionerAppointmentsPage(page).go_to_view_appointments_page()
5757

5858
# Select the Appointment Type, Site, Screening Practitioner and required date of the appointment and click 'View appointments on this day' button
59-
AppointmentCalendar(page).select_appointment_type_dropdown("Colonoscopy Assessment")
59+
AppointmentCalendar(page).select_appointment_type_dropdown(
60+
smokescreen_properties["c5_eng_appointment_type"]
61+
)
6062
AppointmentCalendar(page).select_screening_centre_dropdown(
61-
"BCS001 - Wolverhampton Bowel Cancer Screening Centre"
63+
smokescreen_properties["c5_eng_screening_centre"]
64+
)
65+
AppointmentCalendar(page).select_site_dropdown(
66+
smokescreen_properties["c5_eng_site"]
6267
)
63-
AppointmentCalendar(page).select_site_dropdown("(all)")
6468

6569
AppointmentCalendar(page).click_view_appointments_on_this_day_button()
6670
ScreeningPractitionerDayView(page).click_calendar_button()

0 commit comments

Comments
 (0)