Skip to content

Commit 6e77810

Browse files
authored
Merge branch 'main' into feature/BCSS-21031-selenium-to-playwright-manually-cease-a-subject
Signed-off-by: AndyG <[email protected]>
2 parents 204bc34 + f4441b5 commit 6e77810

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
@@ -46,4 +46,6 @@ markers =
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
4848
manual_cease_tests: tests that are part of the manual cease test suite
49+
bcss_additional_tests: tests that are part of the BCSS additional tests test suite
50+
colonoscopy_dataset_tests: tests that are part of the colonoscopy datasets test suite
4951
fobt_diagnosis_date_entry_tests: tests that are part of fobt subject episodes record diagnosis date

0 commit comments

Comments
 (0)