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 collaboratorManaging invitations in Caren
In order manage your care network
The user
wants to be able to reject or ignore invitations
- Background
-
- Given
- an account "Andre" with email "[email protected]"
- And
- an account "Ria" with email "[email protected]"
- And
- "Andre" receives care
- And
- "Ria" receives care
- And
- "Andre" is logged in
- And
- I am on Andre's page
- And
- I follow "invite_link"
- When
-
I fill in the following within "#invite_person":
First name Ria Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- And
- I follow "Logout"
- Given
- "Ria" is logged in
- Then
- "[email protected]" should receive an email
- When
- I open the email
- Then
- I should see /invited/ in the email subject
- When
- I follow "relationships" in the email
- Then
- I should see "Would you like to join Andre's network?"
- Scenarios
-
- Adding invitations after adding a placeholder
- Handling misdirected invitations
- Handling misdirected invitations, not intended for you
- Rejecting an invitation
- Ignoring an invitation and inviting again (by ignoree)
- Ignoring an invitation and inviting again (by ignored)
- Rejecting an invitation and inviting again
- Ignoring an invitation
- Removing accepted invitation
- Change sharing setting on accepted invitation
- Adding invitations after adding a placeholder
-
- Given
- I am on Ria's page
- When
- I follow "+" within "#tabs"
- And
-
I fill in the following:
First name Andre Last name Foeken Relation Son - And
- I press "Add"
- When
-
I fill in the following:
person_first_name Johan person_last_name de Vries person_email [email protected] - And
- I press "Add"
- Then
- "[email protected]" should receive an email
- Handling misdirected invitations
-
- When
- I follow "No"
- Given
- I am on Ria's page
- When
- I follow "invite_link"
- When
-
I fill in the following:
First name Andre Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- And
- I follow "Logout"
- Then
- "[email protected]" should receive an email
- When
- I open the email
- Then
- I should see /invited/ in the email subject
- When
- I click the first link in the email
- Then
- I should see "Already have a Caren account?"
- Given
- "Andre" is logged in
- When
- I click the first link in the email
- Then
- I should see "Is [email protected] an alternate e-mail address of yours?"
- When
- I follow "Yes, I am [email protected]"
- And
- I follow "Yes"
- Then
- I should see "Ria Test" within "#tabs"
- Handling misdirected invitations, not intended for you
-
- When
- I follow "No"
- Given
- I am on Ria's page
- When
- I follow "invite_link"
- When
-
I fill in the following:
First name Andre Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- And
- I follow "Logout"
- Then
- "[email protected]" should receive an email
- When
- I open the email
- Then
- I should see /invited/ in the email subject
- Given
- "Andre" is logged in
- When
- I click the first link in the email
- Then
- I should see "Is [email protected] an alternate e-mail address of yours?"
- When
- I follow "No, it is not mine."
- Then
- I should see "Already have a Caren account?"
- Rejecting an invitation
-
- When
- I follow "No"
- Then
- I should see "Connection with Andre Test has been rejected."
- And
- I should not have a relationship with "Andre"
- And
- I should not see the "Andre Test" tab
- And
- I follow "Logout"
- Given
- "Andre" is logged in
- And
- I am on Andre's connections page
- Then
- I should not see "Waiting for response"
- Ignoring an invitation and inviting again (by ignoree)
-
- When
- I follow "IGNORE ANDRE TEST"
- And
- I am on Ria's page
- When
- I follow "invite_link"
- When
-
I fill in the following within "#invite_person":
First name Andre Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- Then
- I should have a relationship with "Andre"
- Ignoring an invitation and inviting again (by ignored)
-
- When
- I follow "IGNORE ANDRE TEST"
- Given
- "Andre" is logged in
- And
- I am on Andre's page
- When
- I follow "invite_link"
- When
-
I fill in the following within "#invite_person":
First name Ria Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- Then
- I should see "You already have an open invitation"
- Rejecting an invitation and inviting again
-
- When
- I follow "No"
- And
- I follow "Logout"
- Given
- "Andre" is logged in
- And
- I am on Andre's page
- When
- I follow "invite_link"
- When
-
I fill in the following within "#invite_person":
First name Ria Last name Foeken E-mail [email protected] - And
- I press "Send" within "#invite_person"
- Then
- I should see "Waiting for response"
- Ignoring an invitation
-
- When
- I follow "IGNORE ANDRE TEST"
- Then
- I should see "Connection with Andre Test has been ignored."
- And
- I should not have a relationship with "Andre"
- And
- I should not see the "Andre Test" tab
- And
- I follow "Logout"
- Given
- "Andre" is logged in
- And
- I am on Andre's connections page
- Then
- I should see "Waiting for response"
- Removing accepted invitation
-
- When
- I follow "Yes"
- And
- I follow "REMOVE"
- Then
- I should see "Connection with Andre Test has been removed."
- Then
- I should not have a relationship with "Andre"
- And
- I should not see the "Andre Test" tab
- Change sharing setting on accepted invitation
-
- Given
- "Ria" receives care
- When
- I follow "Yes"
- Then
- I should have a non-sharing relationship with "Andre"
- When
- I choose "Messages and appointments"
- And
- I press "Save"
- Then
- I should have a sharing relationship with "Andre"
Last published over 7 years ago by Dreetje.