forked from nhs-england-tools/playwright-python-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/bcss 22027 surveillanceregressiontests scenario 14 #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mepr1
merged 12 commits into
main
from
feature/BCSS-22027-surveillanceregressiontests-scenario-14
Dec 23, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c07e405
Refacoring util to work for surveillance regression tests
adrianoaru-nhs 652cef3
Refactoring FOBT + Surveillance regression tests
adrianoaru-nhs 358f676
Fixing spelling mistake
adrianoaru-nhs a7a1b95
Completing scenario 11 of surveillance regression tests
adrianoaru-nhs a1ecb4f
Initial commit
adrianoaru-nhs d6d993c
Fixing SonarQube Issues
adrianoaru-nhs 87da67e
Merge branch 'feature/BCSS-22223-refactor-investigation-dataset-util'…
adrianoaru-nhs 9e2efc1
Migrating scenario 13 of surveillance regression tests
adrianoaru-nhs fe4a86e
Addressing SonarQube issues
adrianoaru-nhs 0dccfdf
Completing scenario 14
adrianoaru-nhs e7e6c03
Merge branch 'main' into feature/BCSS-22027-surveillanceregressiontes…
adrianoaru-nhs 9a68a96
Merge branch 'main' into feature/BCSS-22027-surveillanceregressiontes…
adrianoaru-nhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
pages/screening_subject_search/uncease_and_initiate_optin_episode_page.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| from playwright.sync_api import Page | ||
| from pages.base_page import BasePage | ||
|
|
||
|
|
||
| class UnceaseAndInitiateOptinEpisodePage(BasePage): | ||
| """Uncease and Initiate Opt-in Episode Page locators, and methods for interacting with the page.""" | ||
|
|
||
| def __init__(self, page: Page): | ||
| super().__init__(page) | ||
| self.page = page | ||
| self.notes_field = self.page.locator("#UI_NOTES_TEXT") | ||
| self.send_a_kit_button = self.page.get_by_role("button", name="Send a kit") | ||
|
|
||
| def enter_notes(self, notes: str) -> None: | ||
| """ | ||
| Enter notes into the 'Notes' field. | ||
| Args: | ||
| notes (str): The notes to enter into the field. | ||
| """ | ||
| self.notes_field.fill(notes) | ||
|
|
||
| def click_send_a_kit_button(self) -> None: | ||
| """ | ||
| Clicks the 'Send a kit' button. | ||
| """ | ||
| self.safe_accept_dialog(self.send_a_kit_button) | ||
|
|
||
| def manually_uncease_the_subject(self, action: str) -> None: | ||
| """ | ||
| Uncease the subject and take the specified action. | ||
| Args: | ||
| action (str): The action to take after unceasing the subject. | ||
| """ | ||
| self.enter_notes( | ||
| f"Auto test scenario: manual unceasing test for age extension to {action}" | ||
| ) | ||
| match action: | ||
| case "send a new kit": | ||
| self.click_send_a_kit_button() | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.