|
| 1 | +@cpts_ui @patient_detail_banner @regression @blocker @smoke @ui |
| 2 | +@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-5061 |
| 3 | +Feature: The site has a patient detail banner |
| 4 | + |
| 5 | + Background: |
| 6 | + Given I am logged in as a user with multiple access roles |
| 7 | + And I have confirmed a role |
| 8 | + |
| 9 | + Scenario: Before I search for a prescription, the patient details banner is not visible |
| 10 | + When I go to the search for a prescription page |
| 11 | + Then I am on the search for a prescription page |
| 12 | + And the patient details banner is not visible |
| 13 | + |
| 14 | + Scenario: When I search for a prescription, and go back, the patient details banner is not visible |
| 15 | + When I go to the search for a prescription page |
| 16 | + And I click on tab Prescription ID search |
| 17 | + And I search for a prescription using a valid prescription ID "C0C757-A83008-A1234O" |
| 18 | + And I click the Go Back link on the prescription not found page |
| 19 | + Then The patient details banner is not visible |
| 20 | + |
| 21 | + # FIXME: This will need to be updated when the search pages are updated |
| 22 | + Scenario: When I search for a prescription, the patient details appear |
| 23 | + When I go to the search for a prescription page |
| 24 | + And I click on tab Prescription ID search |
| 25 | + And I search for a prescription using a valid prescription ID "C0C757-A83008-C2D93O" |
| 26 | + Then The patient details banner reports complete data |
| 27 | + |
| 28 | + # TODO: Can we set a prescription with incomplete patient data? |
| 29 | + Scenario: When I search for a prescription with incomplete data, the patient detail banner is formatted correctly |
| 30 | + When I go to the search for a prescription page |
| 31 | + And I click on tab Prescription ID search |
| 32 | + And I search for a prescription using a valid prescription ID "209E3D-A83008-327F9F" |
| 33 | + Then The patient details banner reports incomplete data |
0 commit comments