Logo: Relish

  1. Sign in

Project: Anewstart annual_plan

Manage Account Billing Information

  • @vcr
  • @javascript

As a subscriber
I want to manage billing information
So may transactions are successful

Background
Given
I am logged in
And
I am on the My Account page
And
I click "Billing"
And
I click "edit credit card"
Scenarios
Edit Billing Information
When
I enter my billing info
Then
I should be on the My Account Billing page
And
I should see "Visa ************1881"
Edit Billing Information Validation Errors
When
I press "finish"
Then
I should see "Please enter a name."
Then
I should see "Please enter a valid credit card number."
Then
I should see "Please enter a credit card security code."
Then
I should see "Please enter a zip code."
Credit card number validation
When
I fill in "mop_cc_number" with "411111111111"
Then
the field "mop_cc_number" should have class "fieldicon-lock fieldicon-xmark"
Credit card number validation
When
I fill in "mop_cc_number" with "4111111111111111"
Then
the field "mop_cc_number" should have class "fieldicon-lock fieldicon-checkmark"
Visa credit card detection
When
I fill in "mop_cc_number" with "4111111111111111"
And
the hidden field "mop_card_type" should have a value of "Visa"
American Express credit card detection
When
I fill in "mop_cc_number" with "378282246310005"
And
the hidden field "mop_card_type" should have a value of "AmericanExpress"
MasterCard credit card detection
When
I fill in "mop_cc_number" with "5105105105105100"
And
the hidden field "mop_card_type" should have a value of "MasterCard"
Discover credit card detection
When
I fill in "mop_cc_number" with "6011111111111117"
And
the hidden field "mop_card_type" should have a value of "Discover"
Security code numbers
When
I fill in "mop_cvv_code" with "12a"
And
I fill in "Name (as it appears on the card)" with "Dude Man"
And
I fill in "Street Address" with "123 Street Road"
And
I fill in "City" with "Princeton Junction"
And
I select "NJ" from "State"
And
I fill in "Zip Code" with "08550"
And
I fill in "Card Number" with "4111111111111111"
And
I press "finish"
Then
I should see "Please enter only numbers for credit card security code."
Security code missing
When
I fill in "mop_cvv_code" with ""
And
I fill in "Name (as it appears on the card)" with "Dude Man"
And
I fill in "Street Address" with "123 Street Road"
And
I fill in "City" with "Princeton Junction"
And
I select "NJ" from "State"
And
I fill in "Zip Code" with "08550"
And
I fill in "Card Number" with "4111111111111111"
And
I press "finish"
Then
I should see "Please enter a credit card security code."
Security code length
When
I fill in "mop_cvv_code" with "1234"
And
I fill in "Name (as it appears on the card)" with "Dude Man"
And
I fill in "Street Address" with "123 Street Road"
And
I fill in "City" with "Princeton Junction"
And
I select "NJ" from "State"
And
I fill in "Zip Code" with "08550"
And
I fill in "Card Number" with "4111111111111111"
And
I press "finish"
Then
I should not see "Please enter a credit card security code between 3 to 4 digits."

Last published about 7 years ago by Edan Rosenberg.