Skip to content

Commit 92d3acd

Browse files
committed
Adding codes for scenario 14
1 parent 886ec38 commit 92d3acd

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_14.py

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,4 +718,54 @@ def test_scenario_13(page: Page) -> None:
718718
AdvanceFOBTScreeningEpisodePage(page).click_mdt_referral_required_button()
719719
# # And I enter simple MDT information
720720
# MdtReferralPage(page).enter_simple_mdt_information()
721-
# # Then my subject has been updated as follows:
721+
# Then my subject has been updated as follows:
722+
subject_assertion(
723+
nhs_no,
724+
{
725+
"latest event status": "A348 MDT Referral Required",
726+
},
727+
)
728+
# And there is a "A348" letter batch for my subject with the exact title "GP Letter Indicating Referral to MDT"
729+
batch_processing(
730+
page,
731+
"A348",
732+
"GP Letter Indicating Referral to MDT",
733+
)
734+
# When I switch users to BCSS "England" as user role "Senior Screening Assistant"
735+
user_role = UserTools.user_login(page, "Senior Screening Assistant at BCS001", True)
736+
# And I process the open "A183 - GP Result (Abnormal)" letter batch for my subject
737+
batch_processing(
738+
page,
739+
"A183",
740+
"GP Result (Abnormal)",
741+
)
742+
# Then my subject has been updated as follows:
743+
subject_assertion(
744+
nhs_no,
745+
{
746+
"latest event status": "A348 MDT Referral Required ",
747+
"latest episode includes event status": "A167 GP Abnormal FOBT Result Sent",
748+
},
749+
)
750+
# When I switch users to BCSS "England" as user role "Specialist Screening Practitioner"
751+
user_role = UserTools.user_login(
752+
page, "Specialist Screening Practitioner at BCS009 & BCS001", True
753+
)
754+
# And I process the open "A348" letter batch for my subject
755+
batch_processing(
756+
page,
757+
"A348",
758+
"GP Letter Indicating Referral to MDT",
759+
)
760+
# Then my subject has been updated as follows:
761+
subject_assertion(
762+
nhs_no,
763+
{
764+
"latest event status": "A372 Refer Symptomatic, GP Letter Printed",
765+
},
766+
)
767+
# When I view the advance episode options
768+
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
769+
SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
770+
# And I select the advance episode option for "LNPCP Result from Symptomatic Procedure"
771+
# AdvanceFOBTScreeningEpisodePage(page).click_lnpcp_result_from_symptomatic_procedure_button()

0 commit comments

Comments
 (0)