Skip to content

Commit 22e13cc

Browse files
As per PR # 123 review comments, code change is implemented.
1 parent 53075fe commit 22e13cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pages/organisations/organisations_page.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ class OrganisationsPage(BasePage):
88
def __init__(self, page: Page):
99
super().__init__(page)
1010
self.page = page
11+
self.org_and_site_details_link = self.page.get_by_role("link", name="Organisation and Site Details")
12+
self.list_all_orgs_link = self.page.get_by_role("link", name="List All Organisations")
13+
self.back_link = self.page.get_by_role("link", name="Back", exact=True)
14+
self.list_all_sites_link = self.page.get_by_role("link", name="List All Sites")
15+
self.surveillance_link = self.page.get_by_role("link", name="Surveillance", exact=True)
16+
self.manage_surveillance_review_link = self.page.get_by_role("link", name="Manage Surveillance Review")
17+
self.surveillance_review_summary_header = self.page.get_by_text("Surveillance Review Summary")
1118

1219
# Organisations page links
1320
self.screening_centre_parameters_page = self.page.get_by_role(
@@ -51,6 +58,17 @@ def go_to_bureau_page(self) -> None:
5158
"""Clicks the 'Bureau' link."""
5259
self.click(self.bureau_page)
5360

61+
def navigate_to_surveillance_review_summary(self):
62+
self.org_and_site_details_link.click()
63+
self.list_all_orgs_link.click()
64+
self.back_link.click()
65+
self.list_all_sites_link.click()
66+
for _ in range(3):
67+
self.back_link.click()
68+
self.surveillance_link.click()
69+
self.manage_surveillance_review_link.click()
70+
self.page.goto("https://bcss-bcss-18680-ddc-bcss.k8s-nonprod.texasplatform.uk/surveillance/review/summary")
71+
5472
class OrganisationSwitchPage:
5573
"""Page Object Model for interacting with the Organisation Switch page."""
5674

0 commit comments

Comments
 (0)