RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Cucumber tests fail on "User Delete" feature #54

Closed DanielKehoe closed 9 years ago

DanielKehoe commented 11 years ago
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'
MarkDBlackwell commented 11 years ago

This is working for me.

DanielKehoe commented 9 years ago

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