44from pages .base_page import BasePage
55from pages .alerts .alerts_page import AlertsPage
66from pages .gfobt_test_kits .gfobt_test_kits_page import GFOBTTestKitsPage
7- from pages .screening_practitioner_appointments .screening_practitioner_appointments_page import ScreeningPractitionerAppointmentsPage
8- from pages .screening_subject_search .subject_screening_search_page import SubjectScreeningPage
7+ from pages .screening_practitioner_appointments .screening_practitioner_appointments_page import (
8+ ScreeningPractitionerAppointmentsPage ,
9+ )
10+ from pages .screening_subject_search .subject_screening_search_page import (
11+ SubjectScreeningPage ,
12+ )
913from pages .surveillance .surveillance_summary_review_page import SurveillanceSummaryPage
1014
15+
1116# Scenario 1
17+ @pytest .mark .wip
1218@pytest .mark .regression
1319@pytest .mark .hub_user_tests
1420def test_hub_user_alerts_populated (page : Page ) -> None :
@@ -25,7 +31,9 @@ def test_hub_user_alerts_populated(page: Page) -> None:
2531 alerts_page .click_refresh_alerts ()
2632 expect (alerts_page .refresh_alerts_link ).to_be_visible (timeout = 5000 )
2733
34+
2835# Scenario 2
36+ @pytest .mark .wip
2937@pytest .mark .regression
3038@pytest .mark .hub_user_tests
3139def test_hub_user_kits_logged_not_read_report (page : Page ) -> None :
@@ -42,7 +50,9 @@ def test_hub_user_kits_logged_not_read_report(page: Page) -> None:
4250 test_kits_page .open_test_kits_report ()
4351 expect (test_kits_page .test_kits_header ).to_be_visible (timeout = 5000 )
4452
53+
4554# Scenario 3
55+ @pytest .mark .wip
4656@pytest .mark .regression
4757@pytest .mark .hub_user_tests
4858def test_hub_user_people_requiring_colonoscopy_assessment_report (page : Page ) -> None :
@@ -59,7 +69,9 @@ def test_hub_user_people_requiring_colonoscopy_assessment_report(page: Page) ->
5969 appointments_page .open_appointments_report ()
6070 expect (appointments_page .appointments_header ).to_be_visible (timeout = 5000 )
6171
72+
6273# Scenario 4
74+ @pytest .mark .wip
6375@pytest .mark .regression
6476@pytest .mark .hub_user_tests
6577def test_screening_centre_user_subject_search_and_summary (page : Page ) -> None :
@@ -74,9 +86,13 @@ def test_screening_centre_user_subject_search_and_summary(page: Page) -> None:
7486 # Step 2: Use POM for subject search
7587 search_page = SubjectScreeningPage (page )
7688 """screening_status=4004 value represents 'Recall' & episode_status=2 value represents 'Closed'"""
77- search_page .search_subject_with_args (surname = "A*" , forename = "A*" , screening_status = "4004" , episode_status = "2" )
89+ search_page .search_subject_with_args (
90+ surname = "A*" , forename = "A*" , screening_status = "4004" , episode_status = "2"
91+ )
92+
7893
7994# Scenario 5
95+ @pytest .mark .wip
8096@pytest .mark .regression
8197@pytest .mark .hub_user_tests
8298def test_screening_centre_user_subject_search_and_surveillance (page : Page ) -> None :
@@ -89,15 +105,6 @@ def test_screening_centre_user_subject_search_and_surveillance(page: Page) -> No
89105 BasePage (page ).go_to_organisations_page ()
90106
91107 # Step 2: Use POM for navigation and assertion
92- sur_page = SurveillanceSummaryPage (
93- page ,
94- org_and_site_details_link_text = "Organisation and Site Details" ,
95- list_all_orgs_link_text = "List All Organisations" ,
96- list_all_sites_link_text = "List All Sites" ,
97- surveillance_link_text = "Surveillance" ,
98- manage_surveillance_review_link_text = "Manage Surveillance Review" ,
99- surveillance_review_summary_header_text = "Surveillance Review Summary"
100- )
108+ sur_page = SurveillanceSummaryPage (page )
101109 sur_page .navigate_to_surveillance_review_summary ()
102110 expect (sur_page .surveillance_review_summary_header ).to_be_visible (timeout = 5000 )
103-
0 commit comments