55from utils .oracle import OracleDB
66
77@pytest .mark .smoke
8- @pytest .mark .smokescreen
98@pytest .mark .compartment1
10- def test_compartment_1 (page : Page ) -> None :
9+ def test_create_invitations_plan (page : Page ) -> None :
10+ logging .info ("Compartment 1 - Create Invitations Plan" )
1111 UserTools .user_login (page , "Hub Manager State Registered" )
12-
1312 # Create plan - England
1413 MainMenu (page ).go_to_call_and_recall_page ()
1514 CallAndRecall (page ).go_to_planning_and_monitoring_page ()
@@ -24,29 +23,36 @@ def test_compartment_1(page: Page) -> None:
2423 CreateAPlan (page ).fill_note_field ("test data" )
2524 CreateAPlan (page ).click_saveNote_button ()
2625 InvitationsPlans (page ).invitations_plans_title .wait_for ()
26+ logging .info ("Invitation plan created" )
27+
28+ @pytest .mark .smoke
29+ @pytest .mark .smokescreen
30+ @pytest .mark .compartment1
31+ def test_compartment_1 (page : Page ) -> None :
32+ logging .info ("Compartment 1 - Generate Invitations" )
33+ UserTools .user_login (page , "Hub Manager State Registered" )
2734
2835 # Generate Invitations
29- NavigationBar (page ).click_main_menu_link ()
3036 MainMenu (page ).go_to_call_and_recall_page ()
3137 CallAndRecall (page ).go_to_generate_invitations_page ()
32- logging .info ("Generating Invitations " )
38+ logging .info ("Generating invitations based on the invitations plan " )
3339 GenerateInvitations (page ).click_generate_invitations_button ()
3440 GenerateInvitations (page ).wait_for_invitation_generation_complete ()
3541
3642 # Print the batch of Pre-Invitation Letters - England
43+ logging .info ("Compartment 1 - Process S1 Batch" )
3744 batch_processing (page , "S1" , "Pre-invitation (FIT) (digital leaflet)" , "S9 - Pre-invitation Sent" )
3845 nhs_number_df = batch_processing (page , "S1" , "Pre-invitation (FIT)" , "S9 - Pre-invitation Sent" )
3946 OracleDB ().exec_bcss_timed_events (nhs_number_df )
4047
4148 # Print the batch of Invitation & Test Kit Letters - England
49+ logging .info ("Compartment 1 - Process S9 Batch" )
4250 nhs_number_df = batch_processing (page , "S9" , "Invitation & Test Kit (FIT)" , "S10 - Invitation & Test Kit Sent" )
4351 OracleDB ().exec_bcss_timed_events (nhs_number_df )
4452
4553 # Print a set of reminder letters
54+ logging .info ("Compartment 1 - Process S10 Batch" )
4655 batch_processing (page , "S10" , "Test Kit Reminder" , "S19 - Reminder of Initial Test Sent" )
4756
4857 # Log out
49- logging .info ("Logging Out" )
50- NavigationBar (page ).click_log_out_link ()
51- Logout (page ).verify_log_out_page ()
52- page .close ()
58+ Logout (page ).log_out ()
0 commit comments