Skip to content

Commit f4441b5

Browse files
Adding scenarios 1 to 10 from the EndoscopyInvestigationDatasetScenarios feature file (#113)
Adding scenarios 1 to 10 from the EndoscopyInvestigationDatasetScenarios feature file <!-- markdownlint-disable-next-line first-line-heading --> ## Description <!-- Describe your changes in detail. --> Adding scenarios 1 to 10 from the EndoscopyInvestigationDatasetScenarios feature file. ## Context <!-- Why is this change required? What problem does it solve? --> Adding scenarios 1 to 10 from the EndoscopyInvestigationDatasetScenarios feature file ## 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.
1 parent 4fbc663 commit f4441b5

File tree

7 files changed

+2187
-40
lines changed

7 files changed

+2187
-40
lines changed

pages/datasets/investigation_dataset_page.py

Lines changed: 463 additions & 11 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from playwright.sync_api import Page
2+
from pages.base_page import BasePage
3+
4+
5+
class SelectJobRolePage(BasePage):
6+
"""Select Job Role Page locators, and methods for interacting with the page."""
7+
8+
def __init__(self, page: Page):
9+
super().__init__(page)
10+
self.select_job_dropdown = self.page.locator("#selRole")
11+
self.continue_button = self.page.locator("#SelectButton")
12+
13+
def select_option_for_job_role(self, job_role: str) -> None:
14+
"""
15+
Selects a job from the job role dropdown
16+
Args:
17+
job_role (str): This is the text of the role you want to select (e.g. Screening Practitioner)
18+
"""
19+
self.select_job_dropdown.select_option(label=job_role)
20+
21+
def click_continue_button(self) -> None:
22+
"""Clicks on the 'Continue' button"""
23+
self.click(self.continue_button)

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ markers =
4545
subject_search: tests that are part of the subject search test suite
4646
investigation_dataset_tests: tests that are part of the investigation dataset test suite
4747
skip_before_test: tests that will not use the before_test fixture
48+
bcss_additional_tests: tests that are part of the BCSS additional tests test suite
49+
colonoscopy_dataset_tests: tests that are part of the colonoscopy datasets test suite
4850
fobt_diagnosis_date_entry_tests: tests that are part of fobt subject episodes record diagnosis date

0 commit comments

Comments
 (0)