Skip to content

Commit 8b33f03

Browse files
Altering logic in C4
1 parent a6d4a83 commit 8b33f03

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

tests/smokescreen/test_compartment_4.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,15 @@ def test_compartment_4(page: Page, smokescreen_properties: dict) -> None:
102102
BookAppointmentPage(page).select_screening_centre_dropdown_option(
103103
"BCS001 - Wolverhampton Bowel Cancer Screening Centre"
104104
)
105-
BookAppointmentPage(page).select_site_dropdown_option(
106-
"The Royal Hospital (Wolverhampton) (? km)"
107-
)
105+
try:
106+
BookAppointmentPage(page).select_site_dropdown_option(
107+
"The Royal Hospital (Wolverhampton) (? km)"
108+
)
109+
except Exception:
110+
logging.warning("Subject already attended")
111+
BookAppointmentPage(page).select_site_dropdown_option(
112+
"The Royal Hospital (Wolverhampton) (? km) (attended)"
113+
)
108114
current_month_displayed = BookAppointmentPage(
109115
page
110116
).get_current_month_displayed()

utils/batch_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def prepare_and_print_batch(page: Page, link_text) -> None:
9898
page.wait_for_timeout(
9999
1000
100100
) # This one second timeout does not affect the time to execute, as it is just used to ensure the reprepare batch button is clicked and does not instantly advance to the next step
101-
ManageActiveBatch(page).reprepare_batch_text.wait_for()
101+
ManageActiveBatch(page).reprepare_batch_text.wait_for(timeout=100000)
102102

103103
# This loops through each Retrieve button and clicks each one
104104
retrieve_button_count = 0

0 commit comments

Comments
 (0)