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 collaboratorBilling
- Scenarios
-
- Autofill fields when adding credit card
- Read-only accounts cannot add credit cards
- Adding a credit card
- Read only accounts cannot update credit cards
- Required fields when updating credit card
- Updating credit card
- Removing credit card
- Message when credit card is expired
- Autofill fields when adding credit card
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- And
- I click "Add"
- And
- I press "Update"
- And
- I should see "Required field" within ".card_number"
- And
- I should see "Required field" within ".cvv"
- And
- 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"
- Read-only accounts cannot add credit cards
-
- Given
- I am logged in as read-only
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- Then
- I should not see the link "Edit"
- Adding a credit card
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- And
- I click "Add"
- And
- in the Recurly form I fill in ".first_name" with "recurly"
- And
- in the Recurly form I fill in ".last_name" with "test"
- And
- in the Recurly form I fill in ".card_number" with "4111111111111111"
- And
- in the Recurly form I fill in ".cvv" with "123"
- And
- in the Recurly form I fill in ".address1" with "185 varick st"
- And
- in the Recurly form I fill in ".city" with "New York"
- And
- in the Recurly form I fill in ".state" with "NY"
- And
- in the Recurly form I fill in ".zip" with "10001"
- And
- I press "Update"
- And
- wait 2 seconds for ajax to process
- Then
- I should see "Update successful"
- And
- I should see "recurly test"
- And
- I should see "10001"
- And
- I should see "Visa ************1111"
- Read only accounts cannot update credit cards
-
- Given
- I am logged in as read-only
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- Then
- I should not see "Edit"
- Required fields when updating credit card
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- And
- I click "Edit"
- And
- I press "Update"
- Then
- I should see "Required field" within ".card_number"
- And
- I should see "Required field" within ".cvv"
- Updating credit card
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- Then
- I should see "recurly test"
- And
- I should see "10001"
- And
- I should see "Visa ************1111"
- And
- I click "Edit"
- And
- in the Recurly form I fill in ".last_name" with "changed"
- And
- in the Recurly form I fill in ".card_number" with "4111111111111111"
- And
- in the Recurly form I fill in ".cvv" with "123"
- And
- in the Recurly form I fill in ".zip" with "10002"
- And
- I press "Update"
- And
- wait 2 seconds for ajax to process
- Then
- I should see "Update successful"
- And
- I should see "recurly changed"
- And
- I should see "10002"
- Removing credit card
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- And
- I should see "test billing"
- And
- I click "Delete"
- And
- I accept the popup confirmation
- Then
- I should see "Successfully removed credit card. "
- Message when credit card is expired
-
- Given
- I am logged in
- When
- I search for a subscriber with the email "[email protected]"
- And
- I click "Billing"
- And
- I should not see "Card Expired"
- And
- I click "Edit"
- And
- I should not see "Card Expired"
- And
- the time is "2020-04-09 15:55:47 UTC"
- And
- I click "Billing"
- And
- I should see "Card Expired"
- And
- I click "Edit"
- And
- I should see "Card Expired"
Last published almost 7 years ago by Edan Rosenberg.