RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.

Home Page:http://railsapps.github.io/rails-stripe-membership-saas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cucumber tests fail on "User Delete" feature

DanielKehoe opened this issue · comments

Failing Scenarios:
cucumber features/users/user_delete.feature:13
Scenario: I create a new subscription and delete my account # features/users/user_delete.feature:13
    Given: I am on the home page
    When I follow the subscribe for silver path               # features/step_definitions/user_steps.rb:142
    Then I should see "Silver Subscription Plan"              # features/step_definitions/user_steps.rb:158
    Given I fill in the following:                            # features/step_definitions/form_helper_steps.rb:1
      | Name                       | Testy ShortLived  |
      | Email                      | short@testing.com |
      | user_password              | secret_password   |
      | user_password_confirmation | secret_password   |
      | Credit Card Number         | 4242424242424242  |
      | card_code                  | 111               |
    Then I select "5 - May" as the "month"                    # features/step_definitions/form_helper_steps.rb:11
    And I select "2015" as the "year"                         # features/step_definitions/form_helper_steps.rb:11
    When I press "Sign up"                                    # features/step_definitions/form_helper_steps.rb:15
    Then I should be on the "content silver" page             # features/step_definitions/user_steps.rb:162
    And I should see a successful sign up message             # features/step_definitions/user_steps.rb:178
    When I delete my account                                  # features/step_definitions/user_steps.rb:136
    Then I should see an account deleted message              # features/step_definitions/user_steps.rb:214
      Unable to find xpath "/html" (Capybara::ElementNotFound)
      ./features/step_definitions/user_steps.rb:215:in `/^I should see an account deleted message$/'
      features/users/user_delete.feature:30:in `Then I should see an account deleted message'

This is working for me.

There is a new version of this application for Rails 4.2 using the Payola gem.