1212 ManageActiveBatchPage ,
1313)
1414from utils .user_tools import UserTools
15- from utils .batch_processing import prepare_and_print_batch
1615
1716
1817@pytest .fixture (scope = "function" , autouse = True )
@@ -27,10 +26,11 @@ def before_each(page: Page):
2726 BasePage (page ).go_to_call_and_recall_page ()
2827
2928
30- @pytest .mark .wip
3129@pytest .mark .regression
3230@pytest .mark .call_and_recall
33- def test_run_fobt_invitations_and_process_s1_batch (page , general_properties : dict ):
31+ def test_run_fobt_invitations_and_process_s1_batch (
32+ page : Page , general_properties : dict
33+ ):
3434 """
3535 Run FOBT invitations, open the S1 batch, prepare, retrieve+confirm,
3636 and assert we have a subject at status S9.
@@ -47,6 +47,8 @@ def test_run_fobt_invitations_and_process_s1_batch(page, general_properties: dic
4747 logging .info ("Invitations generated successfully" )
4848
4949 # And I view the active batch list
50+ BasePage (page ).click_main_menu_link ()
51+ BasePage (page ).go_to_communications_production_page ()
5052 CommunicationsProductionPage (page ).go_to_active_batch_list_page ()
5153
5254 # And I open the "Original" / "Open" / "S1" / "Pre-invitation (FIT)" batch
@@ -57,15 +59,9 @@ def test_run_fobt_invitations_and_process_s1_batch(page, general_properties: dic
5759 description = "Pre-invitation (FIT)" ,
5860 )
5961
60- # # And I prepare, retrieve & confirm
61- # ManageActiveBatchPage(page).click_prepare_button()
62- # ManageActiveBatchPage(page).click_retrieve_button()
63- # ManageActiveBatchPage(page).click_confirm_button()
64-
65- # # Then there is a subject matching the criteria
66- # assert lb.subject_exists(
67- # latest_kit_class="FIT",
68- # latest_event_status="S9",
69- # latest_episode_type="FOBT",
70- # subject_hub_code="BCS01",
71- # ), "Expected at least one subject at S9 with FIT/FOBT/BCS01"
62+ # Then I retrieve and confirm the letters
63+ ManageActiveBatchPage (page ).click_prepare_button ()
64+ ManageActiveBatchPage (page ).click_retrieve_button ()
65+ BasePage (page ).safe_accept_dialog (
66+ page .get_by_role ("button" , name = "Confirm Printed" )
67+ ) # Click the confirm button and accept the confirmation dialog
0 commit comments