Skip to content

Commit 7879bf6

Browse files
committed
Scenario 5
1 parent 01ffa38 commit 7879bf6

File tree

3 files changed

+383
-139
lines changed

3 files changed

+383
-139
lines changed

pages/screening_subject_search/advance_surveillance_episode_page.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def __init__(self, page: Page):
3535
"button",
3636
name="Discharge from Surveillance - Patient Choice",
3737
)
38+
self.discharge_from_surveillance_no_patient_contact_button = (
39+
self.page.get_by_role(
40+
"button",
41+
name="Discharge from Surveillance - No Patient Contact",
42+
)
43+
)
3844

3945
def click_discharge_from_surveillance_clinical_decision_button(self) -> None:
4046
"""Click on the 'Discharge from Surveillance - Clinical Decision' button."""
@@ -64,3 +70,9 @@ def click_discharge_from_surveillance_patient_choice_button(
6470
) -> None:
6571
"""Click on the 'Discharge from Surveillance - Patient Choice' button."""
6672
self.click(self.discharge_from_surveillance_patient_choice_button)
73+
74+
def click_discharge_from_surveillance_no_patient_contact_button(
75+
self,
76+
) -> None:
77+
"""Click on the 'Discharge from Surveillance - No Patient Contact' button."""
78+
self.click(self.discharge_from_surveillance_no_patient_contact_button)

pages/screening_subject_search/contact_with_patient_page.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def select_outcome_dropdown_option(self, outcome: str) -> None:
8686
- 'Suitable for Radiological Test'
8787
- 'Close Episode - Patient Choice'
8888
- 'SSP Appointment Required'
89+
- 'Discharge from Surveillance - No Contact'
90+
-'No outcome'
8991
"""
9092
self.outcome_dropdown.select_option(label=outcome)
9193

@@ -129,6 +131,9 @@ def record_contact(self, outcome: str, patient_contacted: str = "Yes") -> None:
129131
- 'Close Episode - Patient Choice'
130132
- 'SSP Appointment Required'
131133
- 'Close Episode with Existing result'
134+
- 'Discharge from Surveillance - No Contact'
135+
- 'No outcome'
136+
132137
patient_contacted (str): Indicates if the patient was contacted. Default is 'Yes'. Options include:
133138
- 'Yes'
134139
- 'No'

0 commit comments

Comments
 (0)