1515from pages .fit_test_kits .manage_qc_products_page import ManageQCProducts
1616from pages .fit_test_kits .maintain_analysers_page import MaintainAnalysers
1717from utils .user_tools import UserTools
18+ from utils .load_properties_file import PropertiesFile
19+
20+
21+ @pytest .fixture
22+ def general_properties () -> dict :
23+ return PropertiesFile ().get_general_properties ()
1824
1925
2026@pytest .fixture (scope = "function" , autouse = True )
@@ -30,8 +36,9 @@ def before_each(page: Page):
3036 BasePage (page ).go_to_fit_test_kits_page ()
3137
3238
39+ @pytest .mark .only
3340@pytest .mark .smoke
34- def test_fit_test_kits_page_navigation (page : Page ) -> None :
41+ def test_fit_test_kits_page_navigation (page : Page , general_properties : dict ) -> None :
3542 """
3643 Confirms all menu items are displayed on the fit test kits page, and that the relevant pages
3744 are loaded when the links are clicked
@@ -68,8 +75,12 @@ def test_fit_test_kits_page_navigation(page: Page) -> None:
6875
6976 # Verify View Screening Centre FIT page opens as expected
7077 FITTestKits (page ).go_to_view_screening_centre_fit ()
71- ViewScreeningCentreFITConfiguration (page ).verify_view_screening_centre_body ()
72- BasePage (page ).click_back_button ()
78+ FITTestKits (page ).sc_fit_configuration_page_screening_centre_dropdown .select_option (
79+ general_properties ["coventry_and_warwickshire_bcs_centre" ]
80+ )
81+ ViewScreeningCentreFITConfiguration (page ).verify_view_screening_centre_fit_title ()
82+ BasePage (page ).click_back_button () # Go back to the Select Screening Centre page
83+ BasePage (page ).click_back_button () # Go back to the FIT Test Kits page
7384
7485 # Verify Screening Incidents List page opens as expected
7586 FITTestKits (page ).go_to_screening_incidents_list ()
0 commit comments