To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorLinking to a care provider
In order to see the events in the care providers calendar
The user
wants to be able link themselves to a care provider
- Background
-
- Given
- a care provider named "Zuwe"
- And
- an account "Andre" with email "[email protected]"
- And
- "Andre" receives care
- And
- "Andre" is logged in
- And
- I am on Andre's page
- Scenarios
-
- Linking someone else to a care provider
- Trying to use someone else's code (while logged in)
- Using a letter sent from a care provider while logged in (Add as new patient)
- Using a letter sent from a care provider while logged in (Link to myself)
- Using a letter sent from a care provider while logged in (Link to someone else)
- Trying to use someone else's code
- Trying to use code that was sent to me (while logged out)
- Trying to use code that I requested (while logged out)
- Linking myself to care provider
- Closed beta care providers should not be visible
- Removing a link to care provider
- Linking myself to care provider (invalid details)
- Linking myself to care provider (unknown client)
- Linking myself to care provider (connection down)
- Linking myself to care provider (unknown address)
- Linking someone else to a care provider
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "+" within "#tabs"
- And
-
I fill in the following:
First name Ria Last name Foeken Relation Mommy - And
- I press "Add"
- And
- I follow "Start using Caren"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "A letter has been sent to Ria Foeken."
- Trying to use someone else's code (while logged in)
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "A letter has been sent to your home address."
- When
- I follow "Continue using Caren"
- Then
- I should see "Zuwe" within "#contact_information"
- When
- I follow "Zuwe" within "#contact_information"
- Then
- I should see "Waiting for letter"
- When
- I follow "Logout"
- Given
- a person "Oscar" with email "[email protected]"
- And
- "Oscar" has an account
- And
- "Oscar" is logged in
- And
- the letter delivery script has run
- And
- the code in the last letter was "ADBVC"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ADBVC" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- Then
- I should see "The code you entered was not sent to you."
- Using a letter sent from a care provider while logged in (Add as new patient)
-
- Given
- "Andreas" has received a letter with code "ABCDEFGH" from "Zuwe"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ABCDEFGH" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- When
- I choose to link the letter as a new patient of mine
- Then
- I should see the "Andreas" tab
- Then
- I should see "Zuwe" within "#contact_information"
- Using a letter sent from a care provider while logged in (Link to myself)
-
- Given
- "Andreas" has received a letter with code "ABCDEFGH" from "Zuwe"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ABCDEFGH" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- When
- I choose to link the letter to myself
- Given
- I am on Andre's page
- Then
- I should see "Zuwe" within "#contact_information"
- Using a letter sent from a care provider while logged in (Link to someone else)
-
- Given
- "Rietje" has received a letter with code "ABCDEFGH" from "Zuwe"
- When
- I follow "+" within "#tabs"
- And
-
I fill in the following:
First name Ria Last name Foeken Relation Mommy - And
- I press "Add"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ABCDEFGH" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- When
- I choose to link the letter to "Ria"
- Given
- I am on Ria's page
- Then
- I should see "Zuwe" within "#contact_information"
- Trying to use someone else's code
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- When
- I follow "Logout"
- Given
- the letter delivery script has run
- And
- the code in the last letter was "ADBVC"
- And
- an account "Ria" with email "[email protected]"
- And
- "Ria" is logged in
- When
- I follow "Received a letter?"
- And
- I fill in "code" with "ADBVC"
- And
- I press "Ok"
- Then
- I should see "The code you entered was not sent to you. Only the receiver can use this code."
- Trying to use code that was sent to me (while logged out)
-
- Given
- "Rietje" has received a letter with code "ABCDEFGH" from "Zuwe"
- When
- I follow "Logout"
- When
- I follow "Use code"
- And
- I fill in "code" with "ABCDEFGH"
- And
- I press "Ok"
- Then
- I should see "Already have a Caren account?"
- When
- I follow "Log in to continue"
- And
- I fill in "email" with "[email protected]"
- And
- I fill in "password" with "welcome123"
- And
- I press "Login"
- Then
- I should see "I am Rietje, link the care provider to me."
- When
- I choose to link the letter as a new patient of mine
- Then
- I should see the "Rietje" tab
- Then
- I should see "Zuwe" within "#contact_information"
- Trying to use code that I requested (while logged out)
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "A letter has been sent to your home address."
- When
- I follow "Continue using Caren"
- Then
- I should see "Zuwe" within "#contact_information"
- When
- I follow "Zuwe" within "#contact_information"
- Then
- I should see "Waiting for letter"
- When
- I follow "Logout"
- Given
- the letter delivery script has run
- And
- the code in the last letter was "ADBVC"
- When
- I follow "Use code"
- And
- I fill in "code" with "ADBVC"
- And
- I press "Ok"
- Then
- I should see "To use this code you must be logged in to Caren, please use the fields below."
- When
- I fill in "email" with "[email protected]"
- And
- I fill in "password" with "welcome123"
- And
- I press "Login"
- Then
- I should see "The code you entered has been confirmed!"
- And
- I should see "Zuwe" within "#contact_information"
- When
- I follow "Zuwe" within "#contact_information"
- Then
- I should not see "Waiting for letter"
- Linking myself to care provider
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "A letter has been sent to your home address."
- When
- I follow "Continue using Caren"
- Then
- I should see "Zuwe" within "#contact_information"
- When
- I follow "Zuwe" within "#contact_information"
- Then
- I should see "Waiting for letter"
- Given
- the letter delivery script has run
- And
- the code in the last letter was "ADBVC"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ADBVC" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- Then
- I should see "Zuwe" within "#contact_information"
- And
- I should see "Remove this link" within "#contact_information"
- Closed beta care providers should not be visible
-
- Given
- "Zuwe" is running a closed beta
- When
- I follow "add_care_provider"
- Then
- I should not see "Zuwe"
- Removing a link to care provider
-
- Given
- a "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- When
- I follow "Continue using Caren"
- When
- I follow "Zuwe" within "#contact_information"
- Given
- the letter delivery script has run
- And
- the code in the last letter was "ADBVC"
- When
- I follow "Received a letter?"
- When
- I fill in "code" with "ADBVC" within "#received_letter_popup"
- And
- I press "Ok" within "#received_letter_popup"
- When
- I follow "Remove this link" within "#contact_information"
- Then
- I should not see "Zuwe" within "#contact_information"
- Linking myself to care provider (invalid details)
-
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I press "Link"
- Then
- I should see "Please select a careprovider and enter a valid clientnumber."
- Linking myself to care provider (unknown client)
-
- Given
- no "Zuwe" client with code "1234567"
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "The clientnumber you entered is not known to Zuwe."
- Linking myself to care provider (connection down)
-
- Given
- the care provider connections are temporarily down
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "Please try again later."
- Linking myself to care provider (unknown address)
-
- Given
- a "Zuwe" client with code "1234567" without address
- When
- I follow "add_care_provider"
- And
- I choose "Zuwe"
- And
- I fill in "CLIENTNUMBER" with "1234567"
- And
- I press "Link"
- Then
- I should see "but no address is known"
Last published over 7 years ago by Dreetje.