Skip to content

Commit 36d0802

Browse files
committed
Code is added for IsleMan - BCSS009
1 parent 42a94a9 commit 36d0802

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

tests/Smokescreen/test_compartment_1.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99

1010
@pytest.mark.smoke
1111
@pytest.mark.smokescreen
12+
@pytest.mark.wip
1213
def test_compartment_1(page: Page) -> None:
1314
page.goto("/")
1415
BcssLoginPage(page).login_as_user("BCSS401")
1516

1617
# Create plan
1718
MainMenu(page).go_to_call_and_recall_page()
1819
CallAndRecall(page).go_to_planning_and_monitoring_page()
19-
InvitationsMonitoring(page).go_to_bcss001_invitations_plan_page() # Replicate this for bcss009 (IOM) TODO
20+
InvitationsMonitoring(page).go_to_bcss001_invitations_plan_page() # This code is for bcss001 (IOM)
2021
InvitationsPlans(page).go_to_create_a_plan_page()
2122
CreateAPlan(page).click_set_all_button()
2223
CreateAPlan(page).fill_daily_invitation_rate_field("10")
@@ -26,6 +27,18 @@ def test_compartment_1(page: Page) -> None:
2627
CreateAPlan(page).fill_note_field("test data")
2728
CreateAPlan(page).click_saveNote_button()
2829
InvitationsPlans(page).invitations_plans_title.wait_for()
30+
NavigationBar(page).click_back_link()
31+
32+
InvitationsMonitoring(page).go_to_bcss009_invitations_plan_page() # This code is Replicated for bcss009 (IOM)
33+
InvitationsPlans(page).go_to_create_a_plan_page()
34+
CreateAPlan(page).click_set_all_button()
35+
CreateAPlan(page).fill_daily_invitation_rate_field("1")
36+
CreateAPlan(page).click_update_button()
37+
CreateAPlan(page).click_confirm_button()
38+
CreateAPlan(page).click_save_button()
39+
CreateAPlan(page).fill_note_field("test data")
40+
CreateAPlan(page).click_saveNote_button()
41+
InvitationsPlans(page).invitations_plans_title.wait_for()
2942

3043
# Generate Invitations
3144
NavigationBar(page).click_main_menu_link()
@@ -34,17 +47,27 @@ def test_compartment_1(page: Page) -> None:
3447
GenerateInvitations(page).click_generate_invitations_button()
3548
GenerateInvitations(page).wait_for_invitation_generation_complete()
3649

37-
# Print the batch of Pre-Invitation Letters
50+
# Print the batch of Pre-Invitation Letters - England
3851
batch_processing(page, "S1", "Pre-invitation (FIT) (digital leaflet)", "S9 - Pre-invitation Sent")
3952
s1_nhs_numbers = batch_processing(page, "S1", "Pre-invitation (FIT)", "S9 - Pre-invitation Sent") # New batch processing for S1 IOM TODO
4053
for nhs_no in range(len(s1_nhs_numbers)): # Change this to get nhs numbers from DF instead of list TODO
4154
OracleDB().exec_bcss_timed_events(s1_nhs_numbers[nhs_no-1])
4255

43-
# Print the batch of Invitation & Test Kit Letters
56+
# Print the batch of Pre-Invitation Letters - IsleMan
57+
s1_nhs_numbers = batch_processing(page, "S1", "Pre-invitation (gFOBT)", "S9 - Pre-invitation Sent") # New batch processing for S1 IOM TODO
58+
for nhs_no in range(len(s1_nhs_numbers)): # Change this to get nhs numbers from DF instead of list TODO
59+
OracleDB().exec_bcss_timed_events(s1_nhs_numbers[nhs_no-1])
60+
61+
# Print the batch of Invitation & Test Kit Letters - England
4462
s9_nhs_numbers = batch_processing(page, "S9", "Invitation & Test Kit (FIT)", "S10 - Invitation & Test Kit Sent") # New batch processing for S9 IOM TODO
4563
for nhs_no in range(len(s9_nhs_numbers)):
4664
OracleDB().exec_bcss_timed_events(s9_nhs_numbers[nhs_no-1]) # Change this to get nhs numbers from DF instead of list TODO
4765

66+
# Print the batch of Pre-Invitation Letters - IsleMan
67+
s9_nhs_numbers = batch_processing(page, "S9", "Invitation & Test Kit (gFOBT)", "S10 - Invitation & Test Kit Sent") # New batch processing for S9 IOM TODO
68+
for nhs_no in range(len(s9_nhs_numbers)):
69+
OracleDB().exec_bcss_timed_events(s9_nhs_numbers[nhs_no-1]) # Change this to get nhs numbers from DF instead of list TODO
70+
4871
# Print a set of reminder letters
4972
batch_processing(page, "S10", "Test Kit Reminder", "S19 - Reminder of Initial Test Sent")
5073

0 commit comments

Comments
 (0)