Logo: Relish

  1. Sign in

Project: Icepak annual_plans

Subscribers

  • @javascript
  • @vcr
Scenarios
Searching for a subscriber
Given
I am logged in
And
I go to the Subscribers page
Then
I should see "Search for a subscriber"
And
I fill in "criteria" with "badsearch"
And
I press "search"
Then
I should see "No subscribers found"
And
I fill in "criteria" with "testersearch"
And
I press "search"
Then
I should see the following table rows:
Email Name Created At
[email protected] my tester 2013-03-01T17:40:49Z
[email protected] my tester 2013-03-01T17:40:58Z
Read only accounts cannot edit a user
Given
I am logged in as read-only
When
I search for a subscriber with the email "[email protected]"
Then
I should see "Name Someone New"
And
I should see "Email [email protected]"
And
I should see "Phone number"
And
I should see "Address1 185 Varick St"
And
I should see "Address2 5th floor"
And
I should see "City New York"
And
I should see "State NY"
And
I should see "Zip 10013"
And
I should not see the button "save"
And
I should not see "reset password"
Editing a user as a Icepak-Plus csr
Given
I am logged in as Icepak-Plus
When
I search for a subscriber with the email "[email protected]"
And
I check "Tax Exempt"
And
I fill in "name" with "changed ngo"
And
I fill in "Address1" with "88 King St"
And
I fill in "remark" with "changing user name and address"
And
I press "save"
Then
I should see "Update successful"
And
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] subscriber update name address1 tax_exempt david ngo 88 morgan st false changed ngo 88 King St true changing user name and address
Editing a user
Given
I am logged in
When
I search for a subscriber with the email "[email protected]"
And
I fill in "name" with "changed ngo"
And
I fill in "Address1" with "88 King St"
And
I fill in "remark" with "changing user name and address"
And
I press "save"
Then
I should see "Update successful"
And
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] subscriber update name address1 david ngo 88 morgan st changed ngo 88 King St changing user name and address
Editing a user fails
Given
I am logged in
And
an account exists for a user
And
I am on the Account page for the user
And
I fill in "name" with "&"
And
I fill in "remark" with "something"
And
I press "save"
Then
I should see "Update failed"
Resetting a subscriber's password
Given
I am logged in
And
an account exists for a user
And
I am on the Account page for the user
And
I click "reset password"
Then
I should see "Reset password email has been sent"
And
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] reset password
Showing a preview user
Given
I am logged in
And
there exists a preview account with email: "[email protected]", preview_started_at: "2013-03-27 16:38:49 UTC"
And
the time is "2013-03-25 16:38:49 UTC"
When
I go to the Subscribers page
And
I fill in "criteria" with "preview"
And
I press "search"
And
I click "[email protected]"
Then
I should see "Preview expires in 2 days"
Showing an expired preview user
Given
I am logged in
And
there exists a preview account with email: "[email protected]", preview_started_at: "2013-03-27 16:38:49 UTC"
And
the preview account expired "2013-03-27 16:38:49 UTC"
When
I go to the Subscribers page
And
I fill in "criteria" with "preview"
And
I press "search"
And
I click "[email protected]"
And
I should see "Preview expired"
Read only accounts cannot create a user
Given
I am logged in as read-only
And
I go to the Subscribers page
When
I click "New Subscriber"
Then
I should see "You are not authorized to access this page."
And
I should be on the Subscribers page
Required fields for creating a subscriber
Given
I am logged in
When
I go to the Subscribers page
And
I click "New Subscriber"
Then
I should see "Create New Subscriber"
And
I press "Create"
Then
I should see "Please enter a name."
And
I should see "Please enter the email address."
And
I should see "Please confirm the email address."
And
I should see "Please enter a phone number."
And
I should see "You must accept the terms and conditions."
Required address fields for creating a new subscriber
Given
I am logged in
When
I go to the Subscribers page
And
I click "New Subscriber"
Then
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 press "Create"
Then
I should see "Please enter an address."
And
I should see "Please enter a city."
And
I should see "Please enter a state."
And
I should see "Please enter a zip."
Creating a new subscriber
Given
I am logged in
When
I go to the Subscribers page
And
I click "New Subscriber"
Then
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
the time is "2013-04-09 15:55:47 UTC"
And
I check "Accept Terms and Conditions"
And
I should not see "Tax Exempt"
And
I press "Create"
Then
I should see "Please choose one of the promotional plans for this new user"
And
I click "Account Details"
Then
I should see the following table rows:
Time CSR Action Field From To Remark
anytime [email protected] subscriber create
And
I click "Billing"
And
I click "Add"
Then
in the Recurly form I should see "Someone" for ".first_name"
And
in the Recurly form I should see "New" for ".last_name"
And
in the Recurly form I should see "185 Varick St" for ".address1"
And
in the Recurly form I should see "5th floor" for ".address2"
And
in the Recurly form I should see "New York" for ".city"
And
in the Recurly form I should see "NY" for ".state"
And
in the Recurly form I should see "10013" for ".zip"
Creating a new subscriber when email is already taken
Given
I am logged in
When
I go to the Subscribers page
And
I click "New Subscriber"
Then
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"
And
the time is "2013-04-09 15:55:47 UTC"
And
I press "Create"
Then
I should see "Creation failed because email [email protected] has already been taken."

Last published over 4 years ago by Edan Rosenberg.