@@ -33,6 +33,35 @@ Feature: I can visit the Clinical Prescription Tracker Service Website
3333 And I click the confirm and continue button on the your selected role page
3434 Then I can see the RBAC banner
3535
36+ @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4787
37+ Scenario : User is redirected correctly when they search for non-existent prescriptions
38+ Given I am logged in as a user with a single access role
39+ When I am on the search for a prescription page
40+ And I click on tab Prescription ID search
41+ # Search for a prescription ID that DOES NOT return anything
42+ And I search for a prescription using a valid prescription ID "209E3D-A83008-327F9F"
43+ Then I am on the prescription not found page with redirect to PrescriptionIdSearch
44+
45+ # TODO: Update this test when the NHS number search is implemented
46+ # @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4787
47+ # Scenario: User is redirected correctly when they search for non-existent patient
48+ # Given I am logged in as a user with a single access role
49+ # When I am on the search for a prescription page
50+ # And I click on tab NHS Number search
51+ # # Search for a prescription ID that DOES NOT return anything
52+ # And I search for a patient using a valid NHS number "1234567890"
53+ # Then I am on the prescription not found page with redirect to NhsNumSearch
54+
55+ @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4787
56+ Scenario : User is redirected correctly when they hit the "Go Back" button after searching for non-existent prescription ID
57+ Given I am logged in as a user with a single access role
58+ When I am on the search for a prescription page
59+ And I click on tab Prescription ID search
60+ # Search for a prescription ID that DOES NOT return anything
61+ And I search for a prescription using a valid prescription ID "209E3D-A83008-327F9F"
62+ And I click the Go Back link on the prescription not found page
63+ Then I am on tab Prescription ID search
64+
3665 @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4783
3766 @find_prescription
3867 Scenario : User enters a valid prescription ID and is redirected to results page
@@ -43,7 +72,7 @@ Feature: I can visit the Clinical Prescription Tracker Service Website
4372 And I click the Find a prescription button
4473 Then I am redirected to the prescription results page for "C0C757-A83008-C2D93O"
4574
46- @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4783
75+ @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4783
4776 @find_prescription
4877 Scenario Outline : User sees validation error for incorrect prescription ID
4978 Given I am logged in as a user with a single access role
0 commit comments