Sha256: 7188aecf71ad362301c88b5cd7b037329c723f020d7e641ce350f4d492adbad9

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

Feature: Manage Billing
  As a admin user
  I want to be able to manage my billing information
  So that my account can stay up to date and in good standing

  Scenario: Update the billing information on an account with a paid plan
    Given a paid plan exists with a name of "Paid"
    And the following account exists:
      | name | keyword | plan       | cardholder_name | billing_email      | card_number      | verification_code | expiration_month | expiration_year |
      | Test | test    | name: Paid | Joe Smith       | jsmith@example.com | 4111111111115555 | 122               | 01               | 2015            |
    And I have signed in with "joe@example.com/test"
    And "joe@example.com" is an admin of the "Test" account
    When I go to the billing page for the "Test" account
    Then I should see "card ending in 5555"
    And I follow "Change" within ".current_credit_card"

    Then the "Cardholder name" field should contain "Joe Smith"
    And the "Billing email" field should contain "jsmith@example.com"
    And the "Card number" field should be empty
    And the "Verification code" field should be empty
    And the "Expiration month" field should contain "01"
    And the "Expiration year" field should contain "2015"

    And I fill in "Cardholder name" with "Ralph Robot"
    And I fill in "Billing email" with "accounting@example.com"
    And I fill in "Card number" with "4111111111111111"
    And I fill in "Verification code" with "123"
    And I select "March" from "Expiration month"
    And I select "2020" from "Expiration year"
    And I press "Update"
    Then I should see "updated successfully"
    Then I should see "card ending in 1111"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saucy-0.2.2 lib/generators/saucy/features/templates/features/manage_billing.feature
saucy-0.2.1 lib/generators/saucy/features/templates/features/manage_billing.feature