Skip to content

Instantly share code, notes, and snippets.

@ramhoj
Created March 10, 2010 16:30
Show Gist options
  • Save ramhoj/328038 to your computer and use it in GitHub Desktop.
Save ramhoj/328038 to your computer and use it in GitHub Desktop.
Feature: Cancel a call in progress
In order to maintain an accurate audit trail
As a Pharmacist/Technician in the middle of an incomplete call on the patient overview page
I want to cancel an in-progress call
- I see a cancel call button next to the begin call button
- clicking the button cancels the current call
- system logs the canceled call
- system does not count as a failed attempt
- patient is no longer checked out to me
- I see the logged event on the communications/activities page
- Any saved changes to the patient record are kept
Background:
Given the following patient
| first name | middle initial | last name |
| Jane | E | Doe |
And I am logged in as a pharmacist
And I am on the patient's edit page
Scenario: Pharmacist cancels an in-progress call
When I follow "Begin Call"
Then I should see "Verify Patient Personal Information"
And I check "Patient Identity Verified (ACVD)"
And I press "Verify"
Then I should see "Patient was successfully updated."
And I should see "Verify steps 1-5"
When I follow "Cancel Call"
And the patient's last call should not have failed
And I am not assigned to any patient
Then I should see "Call canceled"
And I follow "Communications"
Then I should see "Call canceled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment