Skip to content

Commit e079c41

Browse files
Feature/bcss 21996 survellianceregressiontests scenario 1 (#156)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description Migrating survellianceregressiontests scenario 1 ## Context survellianceregressiontests scenario 1 ## 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. --------- Signed-off-by: mepr1 <[email protected]> Co-authored-by: Adriano Aru <[email protected]>
1 parent 7289f67 commit e079c41

File tree

5 files changed

+584
-5
lines changed

5 files changed

+584
-5
lines changed

pages/screening_practitioner_appointments/appointment_detail_page.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, page: Page):
2020
self.reason_for_cancellation_dropdown = self.page.get_by_label(
2121
"Reason for Cancellation"
2222
)
23+
self.reschedule_radio_button = self.page.get_by_label("Reschedule")
2324

2425
def check_attendance_radio(self) -> None:
2526
"""Checks the attendance radio button."""
@@ -29,6 +30,10 @@ def check_attended_check_box(self) -> None:
2930
"""Checks the attended check box."""
3031
self.attended_check_box.check()
3132

33+
def click_reschedule_radio(self) -> None:
34+
"""Clicks the reschedule radio button"""
35+
self.click(self.reschedule_radio_button)
36+
3237
def click_calendar_button(self) -> None:
3338
"""Clicks the calendar button."""
3439
self.click(self.calendar_button)

pages/screening_subject_search/subject_screening_summary_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def click_close_button(self) -> None:
341341

342342
def click_view_events_link(self) -> None:
343343
"""Click on the 'View Events' link."""
344-
self.click(self.view_events_link)
344+
self.click(self.view_events_link.first)
345345

346346
def assert_view_letter_links_for_event(
347347
self, event_name: str, expected_count: int

0 commit comments

Comments
 (0)