Skip to content

Commit e32987c

Browse files
Merge branch 'main' of github.com:NHSDigital/bcss-playwright into feature/BCSS-22018-surveillanceregressiontests-scenario-6
2 parents 532f1a7 + 845a1b4 commit e32987c

File tree

3 files changed

+662
-0
lines changed

3 files changed

+662
-0
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
@@ -41,6 +41,12 @@ def __init__(self, page: Page):
4141
"button",
4242
name="Discharge from Surveillance - Patient Choice",
4343
)
44+
self.discharge_from_surveillance_no_patient_contact_button = (
45+
self.page.get_by_role(
46+
"button",
47+
name="Discharge from Surveillance - No Patient Contact",
48+
)
49+
)
4450

4551
def click_discharge_from_surveillance_clinical_decision_button(self) -> None:
4652
"""Click on the 'Discharge from Surveillance - Clinical Decision' button."""
@@ -78,3 +84,9 @@ def click_discharge_from_surveillance_patient_choice_button(
7884
) -> None:
7985
"""Click on the 'Discharge from Surveillance - Patient Choice' button."""
8086
self.click(self.discharge_from_surveillance_patient_choice_button)
87+
88+
def click_discharge_from_surveillance_no_patient_contact_button(
89+
self,
90+
) -> None:
91+
"""Click on the 'Discharge from Surveillance - No Patient Contact' button."""
92+
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)