Skip to content

Commit 845a1b4

Browse files
Feature/bcss 22017 surveillanceregressiontests scenario 5 (#160)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description Completing Surveillance Scenario 5 ## Context Completing Surveillance Scenario 5 ## Type of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [x ] Refactoring (non-breaking change) - [x ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would change existing functionality) - [ ] Bug fix (non-breaking change which fixes an issue) ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x ] I am familiar with the [contributing guidelines](https://github.com/nhs-england-tools/playwright-python-blueprint/blob/main/CONTRIBUTING.md) - [x ] I have followed the code style of the project - [ x] I have added tests to cover my changes (where appropriate) - [x ] I have updated the documentation accordingly - [ ] This PR is a result of pair or mob programming --- ## Sensitive Information Declaration To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including [PII (Personal Identifiable Information) / PID (Personal Identifiable Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter. - [x ] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes. --------- Co-authored-by: Adriano Aru <[email protected]>
1 parent d99552f commit 845a1b4

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
@@ -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)