Skip to content

Commit 731b36d

Browse files
Another duplication fix
1 parent 2c6c54a commit 731b36d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_16.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,25 +504,25 @@ def test_scenario_16(page: Page) -> None:
504504
[
505505
{
506506
"modality": PolypInterventionModalityOptions.POLYPECTOMY,
507-
"device": PolypInterventionDeviceOptions.HOT_SNARE,
508507
"excised": YesNoOptions.YES,
508+
"device": PolypInterventionDeviceOptions.HOT_SNARE,
509509
"retrieved": PolypInterventionRetrievedOptions.YES,
510510
}
511511
],
512512
[
513513
{
514514
"modality": PolypInterventionModalityOptions.EMR,
515-
"device": PolypInterventionDeviceOptions.HOT_SNARE,
516515
"excised": YesNoOptions.YES,
516+
"device": PolypInterventionDeviceOptions.HOT_SNARE,
517517
"retrieved": PolypInterventionRetrievedOptions.YES,
518518
"excision technique": PolypInterventionExcisionTechniqueOptions.EN_BLOC,
519519
}
520520
],
521521
[
522522
{
523523
"modality": PolypInterventionModalityOptions.POLYPECTOMY,
524-
"device": PolypInterventionDeviceOptions.HOT_SNARE,
525524
"excised": YesNoOptions.YES,
525+
"device": PolypInterventionDeviceOptions.HOT_SNARE,
526526
"retrieved": PolypInterventionRetrievedOptions.YES,
527527
"excision technique": PolypInterventionExcisionTechniqueOptions.PIECE_MEAL,
528528
"polyp appears fully resected endoscopically": YesNoOptions.YES,

utils/appointments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def book_appointments(page: Page, screening_centre: str, site: str) -> None:
135135
def book_post_investigation_appointment(
136136
page: Page,
137137
site: str,
138-
screening_practitioner_index: int,
138+
screening_practitioner_index: int = 1,
139139
appointment_start_time: str = "08:00",
140140
) -> None:
141141
"""
@@ -170,6 +170,7 @@ def book_post_investigation_appointment(
170170
dialog_message = book_appointments_page.click_save_button_and_return_message()
171171
if dialog_message is None or overlap_message not in dialog_message:
172172
# Success or no overlap dialog
173+
page.wait_for_timeout(500) # Timeout to allow subject updates to take place
173174
break
174175
# Increase time by 15 minutes
175176
minute += 15

0 commit comments

Comments
 (0)