Logo: Relish

  1. Sign in

Project: Icepak annual_plans

Subscriptions

  • @javascript
Scenarios
  • @vcr
Read only accounts cannot change subscriptions
Given
I am logged in as read-only
When
I search for a subscriber with the email "[email protected]"
And
I click "Subscriptions"
Then
I should see "You are not authorized to access this page."
And
I should be on the Subscribers page
  • @vcr
Seeing promotional options for new subscriber
Given
I am logged in
And
I go to the Subscribers page
And
I click "New Subscriber"
And
I should see "Create New Subscriber"
And
I fill in "name" with "Someone New"
And
I fill in "email" with "[email protected]"
And
I fill in "email_confirmation" with "[email protected]"
And
I fill in "phone_number" with "917-223-2221"
And
I fill in "Address1" with "185 Varick St"
And
I fill in "Address2" with "5th floor"
And
I fill in "City" with "New York"
And
I select "New York" from "State"
And
I fill in "Zip" with "10013"
And
I check "Accept Terms and Conditions"
When
I press "Create"
Then
I should see "Please choose one of the promotional plans for this new user"
And
click "DISHWorld Monthly Promo"
Then
I should see "Channel Packages"
And
I should see "Family Plan"
And
I should see "Billing Info"
And
I should see "Order Summary"
  • @vcr
Prompt to enter billing info before completing the order
Given
I am logged in
And
I search for a subscriber with the email "[email protected]"
And
I click "Subscriptions"
And
click "DISHWorld Monthly Promo"
And
I click "Enter billing info before completing the order"
Then
in the Recurly form I should see "Someone" for ".first_name"
Then
in the Recurly form I should see "New" for ".last_name"
Then
in the Recurly form I should see "185 Varick St" for ".address1"
Then
in the Recurly form I should see "5th floor" for ".address2"
Then
in the Recurly form I should see "New York" for ".city"
Then
in the Recurly form I should see "NY" for ".state"
Then
in the Recurly form I should see "10013" for ".zip"
  • @vcr
Submitting a new Monthly Promo Subscription
Given
I am logged in
And
I search for a subscriber with the email "[email protected]"
And
I click "Subscriptions"
And
I click "DISHWorld Monthly Promo"
And
I click "Hindi Packages"
And
wait 2 seconds for ajax to process
When
I pick "Hindi Mega" within "Channel Packages"
And
I should see "Total: $14.95"
And
the time is "2013-09-09 15:55:47 UTC"
When
I press "Submit Order"
Then
I should see "Active Subscriptions"
And
I should see "DISHWorld Monthly Promo active"
And
I should see "Last billed date: 2013-09-09" within ".active .subscription_summary"
And
I should see "Next bill date: 2013-10-09" within ".active .subscription_summary"
And
I should see "Summary:" within ".active .subscription_summary"
And
I should see "$14.95" within ".active .subscription_summary"
Then
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] Subscription created packages subscription Hindi Mega,1 Stream,Taxes DISHWorld Monthly Promo created subscription DISHWorld Monthly Promo anyuuid
  • @vcr
Changing a subscription
Given
I am logged in
And
I search for a subscriber with the email "[email protected]"
And
I click "Subscriptions"
And
I should see "DISHWorld Monthly Promo active"
And
I should see "Total $14.95"
And
I click "Change Subscription"
And
I press "remove"
And
I click "Vietnamese Packages"
And
wait 2 seconds for ajax to process
When
I pick "Vietnamese TVBV ALC" within "Channel Packages"
And
I press "Apply Changes"
Then
I should see "Will change on 2013-11-10 to"
Then
I should see "Vietnamese TVBV ALC $14.95"
Then
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] Subscription update packages Arabic Elite Super,1 Stream,Taxes Vietnamese TVBV ALC,1 Stream,Taxes updated subscription DISHWorld Monthly Promo anyuuid
  • @vcr
Changing Tax Exempt should update subscription
Given
I am logged in as Icepak-Plus
And
an account with billing information exists for a user
And
I click "Subscriptions"
And
I click "DISHWorld Monthly Promo"
And
I click "Hindi Packages"
And
wait 2 seconds for ajax to process
When
I pick "Hindi Mega" within "Channel Packages"
And
I should see "Total: $14.95"
When
I press "Submit Order"
And
I should see "DISHWorld Monthly Promo active"
And
I should see "Taxes $1.33" within ".active .subscription_summary"
And
I should see "Taxes $3.99" within ".future .subscription_summary"
And
I click "Account Details"
And
I check "Tax Exempt"
And
I press "save"
And
I click "Subscriptions"
And
I should see "Taxes $0.00" within ".active .subscription_summary"
And
I should see "Taxes $0.00" within ".future .subscription_summary"
And
I click "Account Details"
And
I uncheck "Tax Exempt"
And
I press "save"
And
I click "Subscriptions"
And
I should see "Taxes $1.33" within ".active .subscription_summary"
And
I should see "Taxes $3.99" within ".future .subscription_summary"

Last published about 5 years ago by Edan Rosenberg.