Skip to content

Commit 0b615da

Browse files
Completing scenario 16 (#150)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description <!-- Describe your changes in detail. --> Adding scenario 16 from FOBT regression tests feature file ## Context <!-- Why is this change required? What problem does it solve? --> Adding scenario 16 from FOBT regression tests feature file ## Type of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [ ] 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.
1 parent 9527f4e commit 0b615da

File tree

5 files changed

+807
-2
lines changed

5 files changed

+807
-2
lines changed

pages/screening_subject_search/advance_fobt_screening_episode_page.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ def __init__(self, page: Page):
131131
name="Redirect to Establish Suitability for Diagnostic Tests",
132132
)
133133
)
134+
self.redirect_to_establish_attendance_at_appointment_button = (
135+
self.page.get_by_role(
136+
"button", name="Redirect to Establish Attendance at Appointment"
137+
)
138+
)
134139
# Contact recording locators
135140
self.contact_direction_dropdown = self.page.get_by_label("Contact Direction")
136141
self.contact_made_between_dropdown = self.page.get_by_label(
@@ -485,3 +490,11 @@ def click_redirect_to_establish_suitability_for_diagnostic_tests_button(
485490
self.safe_accept_dialog(
486491
self.redirect_to_establish_suitability_for_diagnostic_tests_button
487492
)
493+
494+
def click_redirect_to_establish_attendance_at_appointment_button(
495+
self,
496+
) -> None:
497+
"""Click the 'Redirect to Establish Attendance at Appointment' button"""
498+
self.safe_accept_dialog(
499+
self.redirect_to_establish_attendance_at_appointment_button
500+
)

pages/screening_subject_search/contact_with_patient_page.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def record_contact(self, outcome: str, patient_contacted: str = "Yes") -> None:
128128
- 'Suitable for Radiological Test'
129129
- 'Close Episode - Patient Choice'
130130
- 'SSP Appointment Required'
131+
- 'Close Episode with Existing result'
131132
patient_contacted (str): Indicates if the patient was contacted. Default is 'Yes'. Options include:
132133
- 'Yes'
133134
- 'No'

tests/regression/regression_tests/fobt_regression_tests/test_scenario_14.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_scenario_14(page: Page) -> None:
268268
"latest episode diagnosis date reason": "Null",
269269
"latest episode has diagnosis date": "Yes",
270270
"latest episode includes event status": "A50 Diagnosis date recorded",
271-
"latest event status": "A183 1st Colonoscopy Assessment Appointment Requested ",
271+
"latest event status": "A183 1st Colonoscopy Assessment Appointment Requested",
272272
}
273273
subject_assertion(nhs_number=nhs_no, criteria=criteria)
274274

0 commit comments

Comments
 (0)