Skip to content

Commit fe7d8c3

Browse files
Feature/bcss 22021 surveillanceregressiontests scenario 8 (#162)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description Completing Surveillance Scenario 8 ## Context <!-- Why is this change required? What problem does it solve? --> Completing Surveillance Scenario 8 <!-- 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 97104f8 commit fe7d8c3

File tree

3 files changed

+894
-0
lines changed

3 files changed

+894
-0
lines changed

pages/screening_subject_search/advance_episode_page.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ def __init__(self, page: Page):
139139
"button", name="Redirect to Establish Attendance at Appointment"
140140
)
141141
)
142+
self.high_risk_findings_result_from_symptomatic_procedure_button = (
143+
self.page.get_by_role(
144+
"button", name="High-risk findings Result from Symptomatic Procedure"
145+
)
146+
)
142147
self.date_of_symptomatic_procedure_input = self.page.get_by_role(
143148
"textbox", name="Date of Symptomatic Procedure"
144149
)
@@ -168,6 +173,9 @@ def __init__(self, page: Page):
168173
self.lnpcp_result_from_symptomatic_procedure_button = self.page.get_by_role(
169174
"button", name="LNPCP Result from Symptomatic Procedure"
170175
)
176+
self.other_post_investigation_contact_required_button = self.page.get_by_role(
177+
"button", name="Other Post-investigation Contact Required"
178+
)
171179

172180
def click_suitable_for_endoscopic_test_button(self) -> None:
173181
"""Click the 'Suitable for Endoscopic Test' button."""
@@ -511,3 +519,15 @@ def enter_date_of_symptomatic_procedure(self, date: datetime) -> None:
511519
CalendarPicker(self.page).calendar_picker_ddmmyyyy(
512520
date, self.date_of_symptomatic_procedure_input
513521
)
522+
523+
def click_high_risk_findings_result_from_symptomatic_procedure_button(
524+
self,
525+
) -> None:
526+
"""Click the 'High-risk findings Result from Symptomatic Procedure' button"""
527+
self.safe_accept_dialog(
528+
self.high_risk_findings_result_from_symptomatic_procedure_button
529+
)
530+
531+
def click_other_post_investigation_contact_required_button(self) -> None:
532+
"""Click the 'Other Post Investigation Contact Required' button."""
533+
self.safe_accept_dialog(self.other_post_investigation_contact_required_button)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from playwright.sync_api import Page
2+
from pages.screening_subject_search.result_from_symptomatic_procedure_page import (
3+
ResultFromSymptomaticProcedurePage,
4+
)
5+
6+
7+
class HighRiskFindingsResultFromSymptomaticProcedure(
8+
ResultFromSymptomaticProcedurePage
9+
):
10+
"""High-Risk Findings specific implementation of Result from Symptomatic Procedure Page."""
11+
12+
def __init__(self, page: Page):
13+
super().__init__(page)
14+
self.page = page

0 commit comments

Comments
 (0)