Logo: Relish

  1. Sign in

Project: Caren

Managing your mobile subscription

In order to get notifications and reminders on their mobile
The user
wants to be able mange their mobile subscription

Background
Given
an account "Andre" with email "[email protected]"
And
an account "Ria" with email "[email protected]"
And
"Andre" receives care
And
"Andre" is logged in
And
I am on Andre's page
Scenarios
Subscribing to mobile notifications
When
I follow "Account"
And
I follow "Activate your mobile phone"
And
I select "Netherlands" from "subscription_country"
And
I fill in "subscription_mobile_nr" with "06-12345678"
And
I press "Send"
Then
I should see "A message has been sent to your phone"
And
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "SMS CAREN OK" in the text message
Given
no text messages have been sent
When
I send "CAREN OK" from "06-12345678"
Then
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "Je bent nu aangemeld voor Caren notificaties" in the text message
Given
I am on Andre's page
When
I follow "Account"
And
I follow "Edit your mobile subscription"
Then
I should see "Your mobile subscription"
And
I should see "06-12345678"
Cancelling subscription using the site
When
I follow "Account"
And
I follow "Activate your mobile phone"
And
I select "Netherlands" from "subscription_country"
And
I fill in "subscription_mobile_nr" with "06-12345678"
And
I press "Send"
When
I send "CAREN OK" from "06-12345678"
Given
I am on Andre's page
And
no text messages have been sent
When
I follow "Account"
And
I follow "Edit your mobile subscription"
And
I follow "Cancel subscription"
Then
I should see "Activate your mobile phone"
Cancelling subscription using a text
When
I follow "Account"
And
I follow "Activate your mobile phone"
And
I select "Netherlands" from "subscription_country"
And
I fill in "subscription_mobile_nr" with "06-12345678"
And
I press "Send"
When
I send "CAREN OK" from "06-12345678"
Given
no text messages have been sent
When
I send "CAREN OFF" from "06-12345678"
Then
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "Je bent nu afgemeld." in the text message
When
I follow "Account"
Then
I should see "Activate your mobile phone"
Trying to subscribe using a taken mobile number
When
I follow "Account"
And
I follow "Activate your mobile phone"
And
I select "Netherlands" from "subscription_country"
And
I fill in "subscription_mobile_nr" with "06-12345678"
And
I press "Send"
When
I send "CAREN OK" from "06-12345678"
And
I follow "Logout"
Given
"Ria" is logged in
When
I follow "Account"
And
I follow "Activate your mobile phone"
And
I select "Netherlands" from "subscription_country"
And
I fill in "subscription_mobile_nr" with "06-12345678"
And
I press "Send"
Then
I should see error messages
Getting subscription info
When
I send "CAREN INFO" from "06-12345678"
Then
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "Dit abonnement is voor Caren notificaties." in the text message
Trying to activate subscription with unknown phone nr
When
I send "CAREN OK" from "06-12345678"
Then
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "Sorry we kennen je nog niet." in the text message
Sending a unsupported text to Caren
When
I send "CAREN TEST" from "06-12345678"
Then
"06-12345678" should receive a text message
When
I open the text message
Then
I should see "Sorry we begrijpen je berichtje niet." in the text message

Last published over 5 years ago by Dreetje.